diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-17 20:29:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-17 20:29:00 +0000 |
commit | a7189f01a4a19a9c8852e84b322fc3d8cbda92eb (patch) | |
tree | 436e3ab7b6f055553199153e99f6b7589fb488ec /e2fsprogs/blkid | |
parent | 04c6386c45cd795617dd754066ac3bd6a62757cb (diff) | |
download | busybox-w32-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.tar.gz busybox-w32-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.tar.bz2 busybox-w32-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.zip |
add -Wundef, fix uncovered bugs
Diffstat (limited to 'e2fsprogs/blkid')
-rw-r--r-- | e2fsprogs/blkid/blkid_getsize.c | 2 | ||||
-rw-r--r-- | e2fsprogs/blkid/devname.c | 8 | ||||
-rw-r--r-- | e2fsprogs/blkid/devno.c | 8 | ||||
-rw-r--r-- | e2fsprogs/blkid/resolve.c | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/e2fsprogs/blkid/blkid_getsize.c b/e2fsprogs/blkid/blkid_getsize.c index 3c5ec5b76..941efa42c 100644 --- a/e2fsprogs/blkid/blkid_getsize.c +++ b/e2fsprogs/blkid/blkid_getsize.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | #include <stdio.h> | 16 | #include <stdio.h> |
17 | #include <unistd.h> | 17 | #include <unistd.h> |
18 | #if HAVE_ERRNO_H | 18 | #ifdef HAVE_ERRNO_H |
19 | #include <errno.h> | 19 | #include <errno.h> |
20 | #endif | 20 | #endif |
21 | #include <fcntl.h> | 21 | #include <fcntl.h> |
diff --git a/e2fsprogs/blkid/devname.c b/e2fsprogs/blkid/devname.c index 7606e400d..532aeeaab 100644 --- a/e2fsprogs/blkid/devname.c +++ b/e2fsprogs/blkid/devname.c | |||
@@ -14,20 +14,20 @@ | |||
14 | 14 | ||
15 | #include <stdio.h> | 15 | #include <stdio.h> |
16 | #include <string.h> | 16 | #include <string.h> |
17 | #if HAVE_UNISTD_H | 17 | #ifdef HAVE_UNISTD_H |
18 | #include <unistd.h> | 18 | #include <unistd.h> |
19 | #endif | 19 | #endif |
20 | #include <stdlib.h> | 20 | #include <stdlib.h> |
21 | #include <string.h> | 21 | #include <string.h> |
22 | #include <ctype.h> | 22 | #include <ctype.h> |
23 | #if HAVE_SYS_TYPES_H | 23 | #ifdef HAVE_SYS_TYPES_H |
24 | #include <sys/types.h> | 24 | #include <sys/types.h> |
25 | #endif | 25 | #endif |
26 | #include <sys/stat.h> | 26 | #include <sys/stat.h> |
27 | #if HAVE_ERRNO_H | 27 | #ifdef HAVE_ERRNO_H |
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | #endif | 29 | #endif |
30 | #if HAVE_SYS_MKDEV_H | 30 | #ifdef HAVE_SYS_MKDEV_H |
31 | #include <sys/mkdev.h> | 31 | #include <sys/mkdev.h> |
32 | #endif | 32 | #endif |
33 | #include <time.h> | 33 | #include <time.h> |
diff --git a/e2fsprogs/blkid/devno.c b/e2fsprogs/blkid/devno.c index 4f3dd93cd..13e7f1a87 100644 --- a/e2fsprogs/blkid/devno.c +++ b/e2fsprogs/blkid/devno.c | |||
@@ -13,20 +13,20 @@ | |||
13 | 13 | ||
14 | #include <stdio.h> | 14 | #include <stdio.h> |
15 | #include <string.h> | 15 | #include <string.h> |
16 | #if HAVE_UNISTD_H | 16 | #ifdef HAVE_UNISTD_H |
17 | #include <unistd.h> | 17 | #include <unistd.h> |
18 | #endif | 18 | #endif |
19 | #include <stdlib.h> | 19 | #include <stdlib.h> |
20 | #include <string.h> | 20 | #include <string.h> |
21 | #if HAVE_SYS_TYPES_H | 21 | #ifdef HAVE_SYS_TYPES_H |
22 | #include <sys/types.h> | 22 | #include <sys/types.h> |
23 | #endif | 23 | #endif |
24 | #include <sys/stat.h> | 24 | #include <sys/stat.h> |
25 | #include <dirent.h> | 25 | #include <dirent.h> |
26 | #if HAVE_ERRNO_H | 26 | #ifdef HAVE_ERRNO_H |
27 | #include <errno.h> | 27 | #include <errno.h> |
28 | #endif | 28 | #endif |
29 | #if HAVE_SYS_MKDEV_H | 29 | #ifdef HAVE_SYS_MKDEV_H |
30 | #include <sys/mkdev.h> | 30 | #include <sys/mkdev.h> |
31 | #endif | 31 | #endif |
32 | 32 | ||
diff --git a/e2fsprogs/blkid/resolve.c b/e2fsprogs/blkid/resolve.c index c6f54a272..2bbcaf31d 100644 --- a/e2fsprogs/blkid/resolve.c +++ b/e2fsprogs/blkid/resolve.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <stdio.h> | 14 | #include <stdio.h> |
15 | #if HAVE_UNISTD_H | 15 | #ifdef HAVE_UNISTD_H |
16 | #include <unistd.h> | 16 | #include <unistd.h> |
17 | #endif | 17 | #endif |
18 | #include <stdlib.h> | 18 | #include <stdlib.h> |