diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-24 06:07:34 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-24 06:07:34 +0000 |
commit | 0f8a63896e8e932112b5a34765770522cfa07285 (patch) | |
tree | e6d94d10c7b8bd30dd472e418fdd27e4301d2565 /e2fsprogs/tune2fs.c | |
parent | 0d65565210dbdd472335d504e2fe7039c179b68a (diff) |
err, fix stupid mistake in previous do_findfs() change
Diffstat (limited to 'e2fsprogs/tune2fs.c')
-rw-r--r-- | e2fsprogs/tune2fs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c index 24c4db3c2..b78b0139d 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 |