summaryrefslogtreecommitdiff
path: root/e2fsprogs/e2p/fgetsetversion.c
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/e2p/fgetsetversion.c
parent04c6386c45cd795617dd754066ac3bd6a62757cb (diff)
downloadbusybox-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.zip
busybox-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.tar.gz
add -Wundef, fix uncovered bugs
Diffstat (limited to 'e2fsprogs/e2p/fgetsetversion.c')
-rw-r--r--e2fsprogs/e2p/fgetsetversion.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/e2p/fgetsetversion.c b/e2fsprogs/e2p/fgetsetversion.c
index 48cea9d..8d79054 100644
--- a/e2fsprogs/e2p/fgetsetversion.c
+++ b/e2fsprogs/e2p/fgetsetversion.c
@@ -17,10 +17,10 @@
* 93/10/30 - Creation
*/
-#if HAVE_ERRNO_H
+#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
-#if HAVE_UNISTD_H
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <fcntl.h>
@@ -44,7 +44,7 @@
int fgetsetversion (const char * name, unsigned long * get_version, unsigned long set_version)
{
-#if HAVE_EXT2_IOCTLS
+#ifdef HAVE_EXT2_IOCTLS
int fd, r, ver, save_errno = 0;
fd = open (name, OPEN_FLAGS);