From: kaf24@localhost.localdomain Date: Sun, 28 Jan 2007 09:33:47 +0000 (+0000) Subject: Fix xentop error return code if passed unrecognised options. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15371^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fa4af86617b27f92ac24ca23db613e7dd08c8112;p=xen.git Fix xentop error return code if passed unrecognised options. Signed-off-by: Masaki Kanno --- diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index 1c0d8ac63d..3bc7860349 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -998,9 +998,11 @@ int main(int argc, char **argv) while ((opt = getopt_long(argc, argv, sopts, lopts, &optind)) != -1) { switch (opt) { - case 'h': - case '?': default: + usage(argv[0]); + exit(1); + case '?': + case 'h': usage(argv[0]); exit(0); case 'V':