From a7189f01a4a19a9c8852e84b322fc3d8cbda92eb Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 17 Nov 2006 20:29:00 +0000 Subject: add -Wundef, fix uncovered bugs --- e2fsprogs/e2p/fgetsetflags.c | 8 ++++---- e2fsprogs/e2p/fgetsetversion.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'e2fsprogs/e2p') diff --git a/e2fsprogs/e2p/fgetsetflags.c b/e2fsprogs/e2p/fgetsetflags.c index 34e4055..008b798 100644 --- a/e2fsprogs/e2p/fgetsetflags.c +++ b/e2fsprogs/e2p/fgetsetflags.c @@ -16,15 +16,15 @@ * 93/10/30 - Creation */ -#if HAVE_ERRNO_H +#ifdef HAVE_ERRNO_H #include #endif -#if HAVE_UNISTD_H +#ifdef HAVE_UNISTD_H #include #endif #include #include -#if HAVE_EXT2_IOCTLS +#ifdef HAVE_EXT2_IOCTLS #include #include #endif @@ -39,7 +39,7 @@ int fgetsetflags (const char * name, unsigned long * get_flags, unsigned long set_flags) { -#if HAVE_EXT2_IOCTLS +#ifdef HAVE_EXT2_IOCTLS struct stat buf; int fd, r, f, save_errno = 0; 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 #endif -#if HAVE_UNISTD_H +#ifdef HAVE_UNISTD_H #include #endif #include @@ -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); -- cgit v1.1