From 0f8a63896e8e932112b5a34765770522cfa07285 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 24 Sep 2005 06:07:34 +0000 Subject: [PATCH] err, fix stupid mistake in previous do_findfs() change --- e2fsprogs/tune2fs.c | 6 +++--- 1 file 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 -- 2.25.1