Whamcloud - gitweb
ChangeLog, main.c, resize2fs.h:
authorTheodore Ts'o <tytso@mit.edu>
Wed, 2 Feb 2000 19:14:36 +0000 (19:14 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 2 Feb 2000 19:14:36 +0000 (19:14 +0000)
  resize2fs.h: Remove unneeded #include of linux/fs.h
  main.c: Fix gcc -Wall bug.  main() should return an int.

resize/ChangeLog
resize/main.c
resize/resize2fs.h

index 15490d2..ff00270 100644 (file)
@@ -1,3 +1,9 @@
+2000-02-02  Theodore Ts'o  <tytso@valinux.com>
+
+       * resize2fs.h: Remove unneeded #include of linux/fs.h
+
+       * main.c: Fix gcc -Wall bug.  main() should return an int.
+
 1999-11-19    <tytso@valinux.com>
 
        * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
index 11a2267..77fac23 100644 (file)
@@ -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);
 }
index e9919cf..d128338 100644 (file)
 #include <errno.h>
 #endif
 
-#ifdef HAVE_LINUX_FS_H
-#include <linux/fs.h>
-#endif
-
 #if EXT2_FLAT_INCLUDES
 #include "ext2_fs.h"
 #include "ext2fs.h"