diff options
Diffstat (limited to 'miscutils/makedevs.c')
-rw-r--r-- | miscutils/makedevs.c | 13 |
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 |
22 | int makedevs_main(int argc, char **argv) | 13 | int 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 | ||