diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/chrt.c | 1 | ||||
-rw-r--r-- | miscutils/devfsd.c | 10 | ||||
-rw-r--r-- | miscutils/runlevel.c | 12 |
3 files changed, 11 insertions, 12 deletions
diff --git a/miscutils/chrt.c b/miscutils/chrt.c index 8a4b78fc4..d549708b4 100644 --- a/miscutils/chrt.c +++ b/miscutils/chrt.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <unistd.h> | ||
10 | #include <sched.h> | 9 | #include <sched.h> |
11 | #include <getopt.h> /* optind */ | 10 | #include <getopt.h> /* optind */ |
12 | #include "libbb.h" | 11 | #include "libbb.h" |
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index 994b80e76..ad934a3a4 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -54,15 +54,15 @@ | |||
54 | Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia. | 54 | Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia. |
55 | */ | 55 | */ |
56 | 56 | ||
57 | #include "libbb.h" | 57 | //#include <sys/wait.h> |
58 | #include "xregex.h" | 58 | //#include <sys/ioctl.h> |
59 | #include <sys/wait.h> | 59 | //#include <sys/socket.h> |
60 | #include <sys/ioctl.h> | ||
61 | #include <sys/socket.h> | ||
62 | #include <sys/un.h> | 60 | #include <sys/un.h> |
63 | #include <dirent.h> | 61 | #include <dirent.h> |
64 | #include <syslog.h> | 62 | #include <syslog.h> |
65 | #include <sys/sysmacros.h> | 63 | #include <sys/sysmacros.h> |
64 | #include "libbb.h" | ||
65 | #include "xregex.h" | ||
66 | 66 | ||
67 | 67 | ||
68 | /* Various defines taken from linux/major.h */ | 68 | /* Various defines taken from linux/major.h */ |
diff --git a/miscutils/runlevel.c b/miscutils/runlevel.c index f7d55de0f..0aabfb024 100644 --- a/miscutils/runlevel.c +++ b/miscutils/runlevel.c | |||
@@ -12,11 +12,8 @@ | |||
12 | * initially busyboxified by Bernhard Fischer | 12 | * initially busyboxified by Bernhard Fischer |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "libbb.h" | ||
16 | #include <stdio.h> | ||
17 | #include <utmp.h> | 15 | #include <utmp.h> |
18 | #include <time.h> | 16 | #include "libbb.h" |
19 | #include <stdlib.h> | ||
20 | 17 | ||
21 | int runlevel_main(int argc, char **argv); | 18 | int runlevel_main(int argc, char **argv); |
22 | int runlevel_main(int argc, char **argv) | 19 | int runlevel_main(int argc, char **argv) |
@@ -32,12 +29,15 @@ int runlevel_main(int argc, char **argv) | |||
32 | prev = ut->ut_pid / 256; | 29 | prev = ut->ut_pid / 256; |
33 | if (prev == 0) prev = 'N'; | 30 | if (prev == 0) prev = 'N'; |
34 | printf("%c %c\n", prev, ut->ut_pid % 256); | 31 | printf("%c %c\n", prev, ut->ut_pid % 256); |
35 | endutent(); | 32 | if (ENABLE_FEATURE_CLEAN_UP) |
33 | endutent(); | ||
36 | return 0; | 34 | return 0; |
37 | } | 35 | } |
38 | } | 36 | } |
39 | 37 | ||
40 | puts("unknown"); | 38 | puts("unknown"); |
41 | endutent(); | 39 | |
40 | if (ENABLE_FEATURE_CLEAN_UP) | ||
41 | endutent(); | ||
42 | return 1; | 42 | return 1; |
43 | } | 43 | } |