summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger2005-09-24 06:07:34 +0000
committerMike Frysinger2005-09-24 06:07:34 +0000
commit0f8a63896e8e932112b5a34765770522cfa07285 (patch)
treee6d94d10c7b8bd30dd472e418fdd27e4301d2565
parent0d65565210dbdd472335d504e2fe7039c179b68a (diff)
downloadbusybox-0f8a63896e8e932112b5a34765770522cfa07285.zip
busybox-0f8a63896e8e932112b5a34765770522cfa07285.tar.gz
err, fix stupid mistake in previous do_findfs() change
-rw-r--r--e2fsprogs/tune2fs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c
index 24c4db3..b78b013 100644
--- a/e2fsprogs/tune2fs.c
+++ b/e2fsprogs/tune2fs.c
@@ -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