From: Davidlohr Bueso Date: Sun, 20 May 2012 16:11:26 +0000 (+0200) Subject: fdisk: remove bogus statement X-Git-Tag: v2.22-rc1~376 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e11447670a477fc0a34e401ecf208fd5a3b07bb4;p=thirdparty%2Futil-linux.git fdisk: remove bogus statement usage() does not return, also move the help option handling to the bottom of the switch. Signed-off-by: Davidlohr Bueso --- diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 2f3c11900b..938779536c 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -2095,8 +2095,8 @@ static void command_prompt(void) } } -int -main(int argc, char **argv) { +int main(int argc, char **argv) +{ int j, c; int optl = 0, opts = 0; @@ -2130,9 +2130,6 @@ main(int argc, char **argv) { else if (optarg && strcmp(optarg, "=nondos")) usage(stderr); break; - case 'h': - usage(stdout); - break; case 'H': user_heads = strtou32_or_err(optarg, _("invalid heads argument")); if (user_heads > 256) @@ -2160,6 +2157,8 @@ main(int argc, char **argv) { case 'v': printf(UTIL_LINUX_VERSION); return EXIT_SUCCESS; + case 'h': + usage(stdout); default: usage(stderr); }