err, fix stupid mistake in previous do_findfs() change
authorMike Frysinger <vapier@gentoo.org>
Sat, 24 Sep 2005 06:07:34 +0000 (06:07 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 24 Sep 2005 06:07:34 +0000 (06:07 -0000)
e2fsprogs/tune2fs.c

index 24c4db3c2f31e8f837a43afd8db5aa718ba10d4c..b78b0139d01d012f95e8089e0c2acc8ec91f5ab8 100644 (file)
@@ -615,7 +615,7 @@ static void parse_tune2fs_options(int argc, char **argv)
 }
 
 #ifdef CONFIG_FINDFS
-static void do_findfs(int argc, char **argv)
+static attribute_noreturn void do_findfs(int argc, char **argv)
 {
        char *dev;
 
@@ -626,7 +626,7 @@ static void do_findfs(int argc, char **argv)
        if (!dev)
                bb_error_msg_and_die("Unable to resolve '%s'", argv[1]);
        puts(dev);
-       return 0;
+       exit(0);
 }
 #endif
 
@@ -642,7 +642,7 @@ int tune2fs_main(int argc, char **argv)
 
 #ifdef CONFIG_FINDFS
        if (strcmp(program_name, "findfs") == 0)
-               return do_findfs(argc, argv);
+               do_findfs(argc, argv);
 #endif
 
 #ifdef CONFIG_E2LABEL