summaryrefslogtreecommitdiff
path: root/e2fsprogs/blkid
diff options
context:
space:
mode:
authorDenis Vlasenko2006-11-17 20:29:00 +0000
committerDenis Vlasenko2006-11-17 20:29:00 +0000
commita7189f01a4a19a9c8852e84b322fc3d8cbda92eb (patch)
tree436e3ab7b6f055553199153e99f6b7589fb488ec /e2fsprogs/blkid
parent04c6386c45cd795617dd754066ac3bd6a62757cb (diff)
downloadbusybox-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.zip
busybox-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.tar.gz
add -Wundef, fix uncovered bugs
Diffstat (limited to 'e2fsprogs/blkid')
-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
4 files changed, 10 insertions, 10 deletions
diff --git a/e2fsprogs/blkid/blkid_getsize.c b/e2fsprogs/blkid/blkid_getsize.c
index 3c5ec5b..941efa4 100644
--- a/e2fsprogs/blkid/blkid_getsize.c
+++ b/e2fsprogs/blkid/blkid_getsize.c
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <unistd.h>
-#if HAVE_ERRNO_H
+#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#include <fcntl.h>
diff --git a/e2fsprogs/blkid/devname.c b/e2fsprogs/blkid/devname.c
index 7606e40..532aeea 100644
--- a/e2fsprogs/blkid/devname.c
+++ b/e2fsprogs/blkid/devname.c
@@ -14,20 +14,20 @@
#include <stdio.h>
#include <string.h>
-#if HAVE_UNISTD_H
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#if HAVE_SYS_TYPES_H
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/stat.h>
-#if HAVE_ERRNO_H
+#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
-#if HAVE_SYS_MKDEV_H
+#ifdef HAVE_SYS_MKDEV_H
#include <sys/mkdev.h>
#endif
#include <time.h>
diff --git a/e2fsprogs/blkid/devno.c b/e2fsprogs/blkid/devno.c
index 4f3dd93..13e7f1a 100644
--- a/e2fsprogs/blkid/devno.c
+++ b/e2fsprogs/blkid/devno.c
@@ -13,20 +13,20 @@
#include <stdio.h>
#include <string.h>
-#if HAVE_UNISTD_H
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
-#if HAVE_SYS_TYPES_H
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/stat.h>
#include <dirent.h>
-#if HAVE_ERRNO_H
+#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
-#if HAVE_SYS_MKDEV_H
+#ifdef HAVE_SYS_MKDEV_H
#include <sys/mkdev.h>
#endif
diff --git a/e2fsprogs/blkid/resolve.c b/e2fsprogs/blkid/resolve.c
index c6f54a2..2bbcaf3 100644
--- a/e2fsprogs/blkid/resolve.c
+++ b/e2fsprogs/blkid/resolve.c
@@ -12,7 +12,7 @@
*/
#include <stdio.h>
-#if HAVE_UNISTD_H
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>