diff options
author | Denis Vlasenko | 2006-11-17 20:29:00 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-17 20:29:00 +0000 |
commit | a7189f01a4a19a9c8852e84b322fc3d8cbda92eb (patch) | |
tree | 436e3ab7b6f055553199153e99f6b7589fb488ec /e2fsprogs/e2p/fgetsetflags.c | |
parent | 04c6386c45cd795617dd754066ac3bd6a62757cb (diff) | |
download | busybox-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.zip busybox-a7189f01a4a19a9c8852e84b322fc3d8cbda92eb.tar.gz |
add -Wundef, fix uncovered bugs
Diffstat (limited to 'e2fsprogs/e2p/fgetsetflags.c')
-rw-r--r-- | e2fsprogs/e2p/fgetsetflags.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <errno.h> #endif -#if HAVE_UNISTD_H +#ifdef HAVE_UNISTD_H #include <unistd.h> #endif #include <sys/types.h> #include <sys/stat.h> -#if HAVE_EXT2_IOCTLS +#ifdef HAVE_EXT2_IOCTLS #include <fcntl.h> #include <sys/ioctl.h> #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; |