From 0a617317ee6e947bd9f975c861599dd3dc41aa13 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 2 Feb 2000 19:14:36 +0000 Subject: [PATCH] ChangeLog, main.c, resize2fs.h: resize2fs.h: Remove unneeded #include of linux/fs.h main.c: Fix gcc -Wall bug. main() should return an int. --- resize/ChangeLog | 6 ++++++ resize/main.c | 4 ++-- resize/resize2fs.h | 4 ---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/resize/ChangeLog b/resize/ChangeLog index 15490d2..ff00270 100644 --- a/resize/ChangeLog +++ b/resize/ChangeLog @@ -1,3 +1,9 @@ +2000-02-02 Theodore Ts'o + + * resize2fs.h: Remove unneeded #include of linux/fs.h + + * main.c: Fix gcc -Wall bug. main() should return an int. + 1999-11-19 * Makefile.in (distclean): Remove TAGS and Makefile.in.old from diff --git a/resize/main.c b/resize/main.c index 11a2267..77fac23 100644 --- a/resize/main.c +++ b/resize/main.c @@ -130,7 +130,7 @@ static void check_expire_time(const char *progname) -void main (int argc, char ** argv) +int main (int argc, char ** argv) { errcode_t retval; ext2_filsys fs; @@ -283,5 +283,5 @@ void main (int argc, char ** argv) } printf("The filesystem on %s is now %d blocks long.\n\n", device_name, new_size); - exit (0); + return (0); } diff --git a/resize/resize2fs.h b/resize/resize2fs.h index e9919cf..d128338 100644 --- a/resize/resize2fs.h +++ b/resize/resize2fs.h @@ -24,10 +24,6 @@ #include #endif -#ifdef HAVE_LINUX_FS_H -#include -#endif - #if EXT2_FLAT_INCLUDES #include "ext2_fs.h" #include "ext2fs.h" -- 1.8.3.1