diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-09 14:36:42 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-09 14:36:42 +0000 |
commit | eba8ed71f08f334bc94ac8eeedcd998fcdd05897 (patch) | |
tree | c7a2f4adfb3418ff5d970a4f01fe87df38e04dc9 | |
parent | 9ba5bce06f71e610db752489b4f97e2af56c2577 (diff) | |
download | busybox-w32-eba8ed71f08f334bc94ac8eeedcd998fcdd05897.tar.gz busybox-w32-eba8ed71f08f334bc94ac8eeedcd998fcdd05897.tar.bz2 busybox-w32-eba8ed71f08f334bc94ac8eeedcd998fcdd05897.zip |
Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanup
warnings with glibc 2.2 and use always use xfopen
-Erik
-rw-r--r-- | cat.c | 1 | ||||
-rw-r--r-- | coreutils/cat.c | 1 | ||||
-rw-r--r-- | coreutils/df.c | 1 | ||||
-rw-r--r-- | coreutils/du.c | 3 | ||||
-rw-r--r-- | coreutils/head.c | 1 | ||||
-rw-r--r-- | coreutils/sort.c | 1 | ||||
-rw-r--r-- | coreutils/uname.c | 1 | ||||
-rw-r--r-- | coreutils/wc.c | 1 | ||||
-rw-r--r-- | dc.c | 1 | ||||
-rw-r--r-- | df.c | 1 | ||||
-rw-r--r-- | du.c | 3 | ||||
-rw-r--r-- | fbset.c | 3 | ||||
-rw-r--r-- | head.c | 1 | ||||
-rw-r--r-- | hostname.c | 3 | ||||
-rw-r--r-- | lsmod.c | 1 | ||||
-rw-r--r-- | miscutils/dc.c | 1 | ||||
-rw-r--r-- | miscutils/mktemp.c | 1 | ||||
-rw-r--r-- | miscutils/mt.c | 1 | ||||
-rw-r--r-- | mkfs_minix.c | 5 | ||||
-rw-r--r-- | mktemp.c | 1 | ||||
-rw-r--r-- | modutils/lsmod.c | 1 | ||||
-rw-r--r-- | mt.c | 1 | ||||
-rw-r--r-- | nc.c | 1 | ||||
-rw-r--r-- | networking/hostname.c | 3 | ||||
-rw-r--r-- | networking/nc.c | 1 | ||||
-rw-r--r-- | rdate.c | 2 | ||||
-rw-r--r-- | sort.c | 1 | ||||
-rw-r--r-- | swaponoff.c | 1 | ||||
-rw-r--r-- | uname.c | 1 | ||||
-rw-r--r-- | util-linux/fbset.c | 3 | ||||
-rw-r--r-- | util-linux/mkfs_minix.c | 5 | ||||
-rw-r--r-- | util-linux/rdate.c | 2 | ||||
-rw-r--r-- | util-linux/swaponoff.c | 1 | ||||
-rw-r--r-- | wc.c | 1 |
34 files changed, 40 insertions, 16 deletions
@@ -22,6 +22,7 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <stdlib.h> | 24 | #include <stdlib.h> |
25 | #include <string.h> | ||
25 | #include "busybox.h" | 26 | #include "busybox.h" |
26 | 27 | ||
27 | extern int cat_main(int argc, char **argv) | 28 | extern int cat_main(int argc, char **argv) |
diff --git a/coreutils/cat.c b/coreutils/cat.c index 3554008f8..aa8528d6a 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
@@ -22,6 +22,7 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <stdlib.h> | 24 | #include <stdlib.h> |
25 | #include <string.h> | ||
25 | #include "busybox.h" | 26 | #include "busybox.h" |
26 | 27 | ||
27 | extern int cat_main(int argc, char **argv) | 28 | extern int cat_main(int argc, char **argv) |
diff --git a/coreutils/df.c b/coreutils/df.c index 485076f90..776fceb28 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
27 | #include <string.h> | ||
27 | #include <mntent.h> | 28 | #include <mntent.h> |
28 | #include <sys/vfs.h> | 29 | #include <sys/vfs.h> |
29 | #include <getopt.h> | 30 | #include <getopt.h> |
diff --git a/coreutils/du.c b/coreutils/du.c index 17ecfdeac..7cb888de8 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <stdio.h> | 28 | #include <stdio.h> |
29 | #include <stdlib.h> | 29 | #include <stdlib.h> |
30 | #include <getopt.h> | 30 | #include <getopt.h> |
31 | #include <string.h> | ||
31 | #include <errno.h> | 32 | #include <errno.h> |
32 | #include "busybox.h" | 33 | #include "busybox.h" |
33 | #define BB_DECLARE_EXTERN | 34 | #define BB_DECLARE_EXTERN |
@@ -196,7 +197,7 @@ int du_main(int argc, char **argv) | |||
196 | return status; | 197 | return status; |
197 | } | 198 | } |
198 | 199 | ||
199 | /* $Id: du.c,v 1.42 2001/03/07 17:42:07 markw Exp $ */ | 200 | /* $Id: du.c,v 1.43 2001/03/09 14:36:42 andersen Exp $ */ |
200 | /* | 201 | /* |
201 | Local Variables: | 202 | Local Variables: |
202 | c-file-style: "linux" | 203 | c-file-style: "linux" |
diff --git a/coreutils/head.c b/coreutils/head.c index c683ec78a..fac9ec659 100644 --- a/coreutils/head.c +++ b/coreutils/head.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <getopt.h> | 27 | #include <getopt.h> |
28 | #include <stdlib.h> | 28 | #include <stdlib.h> |
29 | #include <string.h> | ||
29 | #include "busybox.h" | 30 | #include "busybox.h" |
30 | 31 | ||
31 | int head(int len, FILE *fp) | 32 | int head(int len, FILE *fp) |
diff --git a/coreutils/sort.c b/coreutils/sort.c index ed6872218..79e629c75 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -22,6 +22,7 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <getopt.h> | 24 | #include <getopt.h> |
25 | #include <string.h> | ||
25 | #include <stdlib.h> | 26 | #include <stdlib.h> |
26 | #include "busybox.h" | 27 | #include "busybox.h" |
27 | 28 | ||
diff --git a/coreutils/uname.c b/coreutils/uname.c index 4931ff1d8..f7e2291a8 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c | |||
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #include <stdio.h> | 34 | #include <stdio.h> |
35 | #include <stdlib.h> | 35 | #include <stdlib.h> |
36 | #include <string.h> | ||
36 | #include <sys/types.h> | 37 | #include <sys/types.h> |
37 | #include <sys/utsname.h> | 38 | #include <sys/utsname.h> |
38 | 39 | ||
diff --git a/coreutils/wc.c b/coreutils/wc.c index f2d33d6f3..5472c3070 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <stdio.h> | 23 | #include <stdio.h> |
24 | #include <getopt.h> | 24 | #include <getopt.h> |
25 | #include <string.h> | ||
25 | #include <stdlib.h> | 26 | #include <stdlib.h> |
26 | #include "busybox.h" | 27 | #include "busybox.h" |
27 | 28 | ||
@@ -2,6 +2,7 @@ | |||
2 | #include <ctype.h> | 2 | #include <ctype.h> |
3 | #include <stdio.h> | 3 | #include <stdio.h> |
4 | #include <stdlib.h> | 4 | #include <stdlib.h> |
5 | #include <string.h> | ||
5 | #include <unistd.h> | 6 | #include <unistd.h> |
6 | #include <math.h> | 7 | #include <math.h> |
7 | #include "busybox.h" | 8 | #include "busybox.h" |
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
27 | #include <string.h> | ||
27 | #include <mntent.h> | 28 | #include <mntent.h> |
28 | #include <sys/vfs.h> | 29 | #include <sys/vfs.h> |
29 | #include <getopt.h> | 30 | #include <getopt.h> |
@@ -28,6 +28,7 @@ | |||
28 | #include <stdio.h> | 28 | #include <stdio.h> |
29 | #include <stdlib.h> | 29 | #include <stdlib.h> |
30 | #include <getopt.h> | 30 | #include <getopt.h> |
31 | #include <string.h> | ||
31 | #include <errno.h> | 32 | #include <errno.h> |
32 | #include "busybox.h" | 33 | #include "busybox.h" |
33 | #define BB_DECLARE_EXTERN | 34 | #define BB_DECLARE_EXTERN |
@@ -196,7 +197,7 @@ int du_main(int argc, char **argv) | |||
196 | return status; | 197 | return status; |
197 | } | 198 | } |
198 | 199 | ||
199 | /* $Id: du.c,v 1.42 2001/03/07 17:42:07 markw Exp $ */ | 200 | /* $Id: du.c,v 1.43 2001/03/09 14:36:42 andersen Exp $ */ |
200 | /* | 201 | /* |
201 | Local Variables: | 202 | Local Variables: |
202 | c-file-style: "linux" | 203 | c-file-style: "linux" |
@@ -198,8 +198,7 @@ static int readmode(struct fb_var_screeninfo *base, const char *fn, | |||
198 | char buf[256]; | 198 | char buf[256]; |
199 | char *p = buf; | 199 | char *p = buf; |
200 | 200 | ||
201 | if ((f = fopen(fn, "r")) == NULL) | 201 | f = xfopen(fn, "r"); |
202 | perror_msg_and_die("readmode(fopen)"); | ||
203 | while (!feof(f)) { | 202 | while (!feof(f)) { |
204 | fgets(buf, sizeof(buf), f); | 203 | fgets(buf, sizeof(buf), f); |
205 | if ((p = strstr(buf, "mode ")) || (p = strstr(buf, "mode\t"))) { | 204 | if ((p = strstr(buf, "mode ")) || (p = strstr(buf, "mode\t"))) { |
@@ -26,6 +26,7 @@ | |||
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <getopt.h> | 27 | #include <getopt.h> |
28 | #include <stdlib.h> | 28 | #include <stdlib.h> |
29 | #include <string.h> | ||
29 | #include "busybox.h" | 30 | #include "busybox.h" |
30 | 31 | ||
31 | int head(int len, FILE *fp) | 32 | int head(int len, FILE *fp) |
diff --git a/hostname.c b/hostname.c index e1486b365..8ea8fe107 100644 --- a/hostname.c +++ b/hostname.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * $Id: hostname.c,v 1.24 2001/02/14 21:23:06 andersen Exp $ | 3 | * $Id: hostname.c,v 1.25 2001/03/09 14:36:42 andersen Exp $ |
4 | * Mini hostname implementation for busybox | 4 | * Mini hostname implementation for busybox |
5 | * | 5 | * |
6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> | 6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> |
@@ -30,6 +30,7 @@ | |||
30 | #include <unistd.h> | 30 | #include <unistd.h> |
31 | #include <string.h> | 31 | #include <string.h> |
32 | #include <stdio.h> | 32 | #include <stdio.h> |
33 | #include <stdlib.h> | ||
33 | 34 | ||
34 | void do_sethostname(char *s, int isfile) | 35 | void do_sethostname(char *s, int isfile) |
35 | { | 36 | { |
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include <stdlib.h> | 28 | #include <stdlib.h> |
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | #include <string.h> | ||
30 | #include <stddef.h> | 31 | #include <stddef.h> |
31 | #include <errno.h> | 32 | #include <errno.h> |
32 | #include <unistd.h> | 33 | #include <unistd.h> |
diff --git a/miscutils/dc.c b/miscutils/dc.c index a422139b1..8d7a92a28 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include <ctype.h> | 2 | #include <ctype.h> |
3 | #include <stdio.h> | 3 | #include <stdio.h> |
4 | #include <stdlib.h> | 4 | #include <stdlib.h> |
5 | #include <string.h> | ||
5 | #include <unistd.h> | 6 | #include <unistd.h> |
6 | #include <math.h> | 7 | #include <math.h> |
7 | #include "busybox.h" | 8 | #include "busybox.h" |
diff --git a/miscutils/mktemp.c b/miscutils/mktemp.c index 31ab9e228..bc47d0af0 100644 --- a/miscutils/mktemp.c +++ b/miscutils/mktemp.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <errno.h> | 26 | #include <errno.h> |
27 | #include <string.h> | ||
27 | #include <unistd.h> | 28 | #include <unistd.h> |
28 | #include <stdlib.h> | 29 | #include <stdlib.h> |
29 | #include "busybox.h" | 30 | #include "busybox.h" |
diff --git a/miscutils/mt.c b/miscutils/mt.c index 350d3ae5a..250856f05 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c | |||
@@ -1,6 +1,7 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #include <string.h> | ||
4 | #include <sys/mtio.h> | 5 | #include <sys/mtio.h> |
5 | #include <sys/fcntl.h> | 6 | #include <sys/fcntl.h> |
6 | #include "busybox.h" | 7 | #include "busybox.h" |
diff --git a/mkfs_minix.c b/mkfs_minix.c index b666338dc..928a49674 100644 --- a/mkfs_minix.c +++ b/mkfs_minix.c | |||
@@ -683,10 +683,7 @@ char *filename; | |||
683 | FILE *listfile; | 683 | FILE *listfile; |
684 | unsigned long blockno; | 684 | unsigned long blockno; |
685 | 685 | ||
686 | listfile = fopen(filename, "r"); | 686 | listfile = xfopen(filename, "r"); |
687 | if (listfile == (FILE *) NULL) { | ||
688 | error_msg_and_die("can't open file of bad blocks"); | ||
689 | } | ||
690 | while (!feof(listfile)) { | 687 | while (!feof(listfile)) { |
691 | fscanf(listfile, "%ld\n", &blockno); | 688 | fscanf(listfile, "%ld\n", &blockno); |
692 | mark_zone(blockno); | 689 | mark_zone(blockno); |
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <errno.h> | 26 | #include <errno.h> |
27 | #include <string.h> | ||
27 | #include <unistd.h> | 28 | #include <unistd.h> |
28 | #include <stdlib.h> | 29 | #include <stdlib.h> |
29 | #include "busybox.h" | 30 | #include "busybox.h" |
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index a853db888..8251705de 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include <stdlib.h> | 28 | #include <stdlib.h> |
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | #include <string.h> | ||
30 | #include <stddef.h> | 31 | #include <stddef.h> |
31 | #include <errno.h> | 32 | #include <errno.h> |
32 | #include <unistd.h> | 33 | #include <unistd.h> |
@@ -1,6 +1,7 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #include <string.h> | ||
4 | #include <sys/mtio.h> | 5 | #include <sys/mtio.h> |
5 | #include <sys/fcntl.h> | 6 | #include <sys/fcntl.h> |
6 | #include "busybox.h" | 7 | #include "busybox.h" |
@@ -28,6 +28,7 @@ | |||
28 | 28 | ||
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
31 | #include <string.h> | ||
31 | #include <unistd.h> | 32 | #include <unistd.h> |
32 | 33 | ||
33 | #include <sys/types.h> | 34 | #include <sys/types.h> |
diff --git a/networking/hostname.c b/networking/hostname.c index e1486b365..8ea8fe107 100644 --- a/networking/hostname.c +++ b/networking/hostname.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * $Id: hostname.c,v 1.24 2001/02/14 21:23:06 andersen Exp $ | 3 | * $Id: hostname.c,v 1.25 2001/03/09 14:36:42 andersen Exp $ |
4 | * Mini hostname implementation for busybox | 4 | * Mini hostname implementation for busybox |
5 | * | 5 | * |
6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> | 6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> |
@@ -30,6 +30,7 @@ | |||
30 | #include <unistd.h> | 30 | #include <unistd.h> |
31 | #include <string.h> | 31 | #include <string.h> |
32 | #include <stdio.h> | 32 | #include <stdio.h> |
33 | #include <stdlib.h> | ||
33 | 34 | ||
34 | void do_sethostname(char *s, int isfile) | 35 | void do_sethostname(char *s, int isfile) |
35 | { | 36 | { |
diff --git a/networking/nc.c b/networking/nc.c index e40d4b459..72439dd85 100644 --- a/networking/nc.c +++ b/networking/nc.c | |||
@@ -28,6 +28,7 @@ | |||
28 | 28 | ||
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
31 | #include <string.h> | ||
31 | #include <unistd.h> | 32 | #include <unistd.h> |
32 | 33 | ||
33 | #include <sys/types.h> | 34 | #include <sys/types.h> |
@@ -28,6 +28,8 @@ | |||
28 | #include <netdb.h> | 28 | #include <netdb.h> |
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | #include <getopt.h> | 30 | #include <getopt.h> |
31 | #include <string.h> | ||
32 | #include <time.h> | ||
31 | #include <stdlib.h> | 33 | #include <stdlib.h> |
32 | #include <unistd.h> | 34 | #include <unistd.h> |
33 | #include "busybox.h" | 35 | #include "busybox.h" |
@@ -22,6 +22,7 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <getopt.h> | 24 | #include <getopt.h> |
25 | #include <string.h> | ||
25 | #include <stdlib.h> | 26 | #include <stdlib.h> |
26 | #include "busybox.h" | 27 | #include "busybox.h" |
27 | 28 | ||
diff --git a/swaponoff.c b/swaponoff.c index 0613fa1e9..9deb13a28 100644 --- a/swaponoff.c +++ b/swaponoff.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <mntent.h> | 26 | #include <mntent.h> |
27 | #include <dirent.h> | 27 | #include <dirent.h> |
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | #include <string.h> | ||
29 | #include <stdlib.h> | 30 | #include <stdlib.h> |
30 | #include <sys/mount.h> | 31 | #include <sys/mount.h> |
31 | #include <sys/syscall.h> | 32 | #include <sys/syscall.h> |
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #include <stdio.h> | 34 | #include <stdio.h> |
35 | #include <stdlib.h> | 35 | #include <stdlib.h> |
36 | #include <string.h> | ||
36 | #include <sys/types.h> | 37 | #include <sys/types.h> |
37 | #include <sys/utsname.h> | 38 | #include <sys/utsname.h> |
38 | 39 | ||
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 72284a6c5..be1e3c3f1 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c | |||
@@ -198,8 +198,7 @@ static int readmode(struct fb_var_screeninfo *base, const char *fn, | |||
198 | char buf[256]; | 198 | char buf[256]; |
199 | char *p = buf; | 199 | char *p = buf; |
200 | 200 | ||
201 | if ((f = fopen(fn, "r")) == NULL) | 201 | f = xfopen(fn, "r"); |
202 | perror_msg_and_die("readmode(fopen)"); | ||
203 | while (!feof(f)) { | 202 | while (!feof(f)) { |
204 | fgets(buf, sizeof(buf), f); | 203 | fgets(buf, sizeof(buf), f); |
205 | if ((p = strstr(buf, "mode ")) || (p = strstr(buf, "mode\t"))) { | 204 | if ((p = strstr(buf, "mode ")) || (p = strstr(buf, "mode\t"))) { |
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index b666338dc..928a49674 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c | |||
@@ -683,10 +683,7 @@ char *filename; | |||
683 | FILE *listfile; | 683 | FILE *listfile; |
684 | unsigned long blockno; | 684 | unsigned long blockno; |
685 | 685 | ||
686 | listfile = fopen(filename, "r"); | 686 | listfile = xfopen(filename, "r"); |
687 | if (listfile == (FILE *) NULL) { | ||
688 | error_msg_and_die("can't open file of bad blocks"); | ||
689 | } | ||
690 | while (!feof(listfile)) { | 687 | while (!feof(listfile)) { |
691 | fscanf(listfile, "%ld\n", &blockno); | 688 | fscanf(listfile, "%ld\n", &blockno); |
692 | mark_zone(blockno); | 689 | mark_zone(blockno); |
diff --git a/util-linux/rdate.c b/util-linux/rdate.c index a3ea3a85b..ed7121a75 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <netdb.h> | 28 | #include <netdb.h> |
29 | #include <stdio.h> | 29 | #include <stdio.h> |
30 | #include <getopt.h> | 30 | #include <getopt.h> |
31 | #include <string.h> | ||
32 | #include <time.h> | ||
31 | #include <stdlib.h> | 33 | #include <stdlib.h> |
32 | #include <unistd.h> | 34 | #include <unistd.h> |
33 | #include "busybox.h" | 35 | #include "busybox.h" |
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 0613fa1e9..9deb13a28 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <mntent.h> | 26 | #include <mntent.h> |
27 | #include <dirent.h> | 27 | #include <dirent.h> |
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | #include <string.h> | ||
29 | #include <stdlib.h> | 30 | #include <stdlib.h> |
30 | #include <sys/mount.h> | 31 | #include <sys/mount.h> |
31 | #include <sys/syscall.h> | 32 | #include <sys/syscall.h> |
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <stdio.h> | 23 | #include <stdio.h> |
24 | #include <getopt.h> | 24 | #include <getopt.h> |
25 | #include <string.h> | ||
25 | #include <stdlib.h> | 26 | #include <stdlib.h> |
26 | #include "busybox.h" | 27 | #include "busybox.h" |
27 | 28 | ||