aboutsummaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-03 15:41:12 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-08-03 15:41:12 +0000
commit5e2a5391f9142bca773aab4c829615895b69a6b7 (patch)
treee4a2769349867c441cf2983d83097bb66701a733 /miscutils/makedevs.c
parente883e03918a0e26e390ea23996abdb8fc1925f88 (diff)
downloadbusybox-w32-5e2a5391f9142bca773aab4c829615895b69a6b7.tar.gz
busybox-w32-5e2a5391f9142bca773aab4c829615895b69a6b7.tar.bz2
busybox-w32-5e2a5391f9142bca773aab4c829615895b69a6b7.zip
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'miscutils/makedevs.c')
-rw-r--r--miscutils/makedevs.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index 776bcaa8d..0ebb0538f 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -8,15 +8,6 @@
8 */ 8 */
9 9
10#include "busybox.h" 10#include "busybox.h"
11#include <stdio.h>
12#include <stdlib.h>
13#include <string.h>
14#include <fcntl.h>
15#include <time.h>
16#include <ctype.h>
17#include <unistd.h>
18#include <sys/types.h>
19#include <sys/sysmacros.h> /* major() and minor() */
20 11
21#ifdef CONFIG_FEATURE_MAKEDEVS_LEAF 12#ifdef CONFIG_FEATURE_MAKEDEVS_LEAF
22int makedevs_main(int argc, char **argv) 13int makedevs_main(int argc, char **argv)
@@ -88,13 +79,13 @@ int makedevs_main(int argc, char **argv)
88 unsigned long flags; 79 unsigned long flags;
89 flags = bb_getopt_ulflags(argc, argv, "d:", &line); 80 flags = bb_getopt_ulflags(argc, argv, "d:", &line);
90 if (line) 81 if (line)
91 table = bb_xfopen(line, "r"); 82 table = xfopen(line, "r");
92 83
93 if (optind >= argc || (rootdir=argv[optind])==NULL) { 84 if (optind >= argc || (rootdir=argv[optind])==NULL) {
94 bb_error_msg_and_die("root directory not specified"); 85 bb_error_msg_and_die("root directory not specified");
95 } 86 }
96 87
97 bb_xchdir(rootdir); 88 xchdir(rootdir);
98 89
99 umask(0); 90 umask(0);
100 91