usage() does not return, also move the help option handling to the bottom of the switch.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
}
}
-int
-main(int argc, char **argv) {
+int main(int argc, char **argv)
+{
int j, c;
int optl = 0, opts = 0;
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)
case 'v':
printf(UTIL_LINUX_VERSION);
return EXIT_SUCCESS;
+ case 'h':
+ usage(stdout);
default:
usage(stderr);
}