aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-17 20:29:00 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-17 20:29:00 +0000
commitd165e94f4904b921be285ac06ecd035d8fe7eb77 (patch)
tree436e3ab7b6f055553199153e99f6b7589fb488ec /e2fsprogs
parent5e930fe52997747f9c5127a4c34fff0ca1057222 (diff)
downloadbusybox-w32-d165e94f4904b921be285ac06ecd035d8fe7eb77.tar.gz
busybox-w32-d165e94f4904b921be285ac06ecd035d8fe7eb77.tar.bz2
busybox-w32-d165e94f4904b921be285ac06ecd035d8fe7eb77.zip
add -Wundef, fix uncovered bugs
git-svn-id: svn://busybox.net/trunk/busybox@16571 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'e2fsprogs')
-rw-r--r--e2fsprogs/blkid/blkid_getsize.c2
-rw-r--r--e2fsprogs/blkid/devname.c8
-rw-r--r--e2fsprogs/blkid/devno.c8
-rw-r--r--e2fsprogs/blkid/resolve.c2
-rw-r--r--e2fsprogs/e2fsck.c2
-rw-r--r--e2fsprogs/e2p/fgetsetflags.c8
-rw-r--r--e2fsprogs/e2p/fgetsetversion.c6
-rw-r--r--e2fsprogs/ext2fs/finddev.c10
8 files changed, 23 insertions, 23 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>
diff --git a/e2fsprogs/e2fsck.c b/e2fsprogs/e2fsck.c
index 88eedeaa6..4920cd0f4 100644
--- a/e2fsprogs/e2fsck.c
+++ b/e2fsprogs/e2fsck.c
@@ -4309,7 +4309,7 @@ static int process_block(ext2_filsys fs,
4309 * Should never happen, since only directories 4309 * Should never happen, since only directories
4310 * get called with BLOCK_FLAG_HOLE 4310 * get called with BLOCK_FLAG_HOLE
4311 */ 4311 */
4312#if DEBUG_E2FSCK 4312#ifdef DEBUG_E2FSCK
4313 printf("process_block() called with blk == 0, " 4313 printf("process_block() called with blk == 0, "
4314 "blockcnt=%d, inode %lu???\n", 4314 "blockcnt=%d, inode %lu???\n",
4315 blockcnt, p->ino); 4315 blockcnt, p->ino);
diff --git a/e2fsprogs/e2p/fgetsetflags.c b/e2fsprogs/e2p/fgetsetflags.c
index 34e40551f..008b79850 100644
--- a/e2fsprogs/e2p/fgetsetflags.c
+++ b/e2fsprogs/e2p/fgetsetflags.c
@@ -16,15 +16,15 @@
16 * 93/10/30 - Creation 16 * 93/10/30 - Creation
17 */ 17 */
18 18
19#if HAVE_ERRNO_H 19#ifdef HAVE_ERRNO_H
20#include <errno.h> 20#include <errno.h>
21#endif 21#endif
22#if HAVE_UNISTD_H 22#ifdef HAVE_UNISTD_H
23#include <unistd.h> 23#include <unistd.h>
24#endif 24#endif
25#include <sys/types.h> 25#include <sys/types.h>
26#include <sys/stat.h> 26#include <sys/stat.h>
27#if HAVE_EXT2_IOCTLS 27#ifdef HAVE_EXT2_IOCTLS
28#include <fcntl.h> 28#include <fcntl.h>
29#include <sys/ioctl.h> 29#include <sys/ioctl.h>
30#endif 30#endif
@@ -39,7 +39,7 @@
39 39
40int fgetsetflags (const char * name, unsigned long * get_flags, unsigned long set_flags) 40int fgetsetflags (const char * name, unsigned long * get_flags, unsigned long set_flags)
41{ 41{
42#if HAVE_EXT2_IOCTLS 42#ifdef HAVE_EXT2_IOCTLS
43 struct stat buf; 43 struct stat buf;
44 int fd, r, f, save_errno = 0; 44 int fd, r, f, save_errno = 0;
45 45
diff --git a/e2fsprogs/e2p/fgetsetversion.c b/e2fsprogs/e2p/fgetsetversion.c
index 48cea9df4..8d79054d6 100644
--- a/e2fsprogs/e2p/fgetsetversion.c
+++ b/e2fsprogs/e2p/fgetsetversion.c
@@ -17,10 +17,10 @@
17 * 93/10/30 - Creation 17 * 93/10/30 - Creation
18 */ 18 */
19 19
20#if HAVE_ERRNO_H 20#ifdef HAVE_ERRNO_H
21#include <errno.h> 21#include <errno.h>
22#endif 22#endif
23#if HAVE_UNISTD_H 23#ifdef HAVE_UNISTD_H
24#include <unistd.h> 24#include <unistd.h>
25#endif 25#endif
26#include <fcntl.h> 26#include <fcntl.h>
@@ -44,7 +44,7 @@
44 44
45int fgetsetversion (const char * name, unsigned long * get_version, unsigned long set_version) 45int fgetsetversion (const char * name, unsigned long * get_version, unsigned long set_version)
46{ 46{
47#if HAVE_EXT2_IOCTLS 47#ifdef HAVE_EXT2_IOCTLS
48 int fd, r, ver, save_errno = 0; 48 int fd, r, ver, save_errno = 0;
49 49
50 fd = open (name, OPEN_FLAGS); 50 fd = open (name, OPEN_FLAGS);
diff --git a/e2fsprogs/ext2fs/finddev.c b/e2fsprogs/ext2fs/finddev.c
index 4dda916d0..5e2cce940 100644
--- a/e2fsprogs/ext2fs/finddev.c
+++ b/e2fsprogs/ext2fs/finddev.c
@@ -13,22 +13,22 @@
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#if HAVE_SYS_STAT_H 24#ifdef HAVE_SYS_STAT_H
25#include <sys/stat.h> 25#include <sys/stat.h>
26#endif 26#endif
27#include <dirent.h> 27#include <dirent.h>
28#if HAVE_ERRNO_H 28#ifdef HAVE_ERRNO_H
29#include <errno.h> 29#include <errno.h>
30#endif 30#endif
31#if HAVE_SYS_MKDEV_H 31#ifdef HAVE_SYS_MKDEV_H
32#include <sys/mkdev.h> 32#include <sys/mkdev.h>
33#endif 33#endif
34 34