direct-io.hg

changeset 13651:4e7bda043cce

Fix xentop error return code if passed unrecognised options.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kaf24@localhost.localdomain
date Sun Jan 28 09:33:47 2007 +0000 (2007-01-28)
parents d1710eb35385
children db0aeb4e41c3
files tools/xenstat/xentop/xentop.c
line diff
     1.1 --- a/tools/xenstat/xentop/xentop.c	Sat Jan 27 13:32:27 2007 +0000
     1.2 +++ b/tools/xenstat/xentop/xentop.c	Sun Jan 28 09:33:47 2007 +0000
     1.3 @@ -998,9 +998,11 @@ int main(int argc, char **argv)
     1.4  
     1.5  	while ((opt = getopt_long(argc, argv, sopts, lopts, &optind)) != -1) {
     1.6  		switch (opt) {
     1.7 -		case 'h':
     1.8 +		default:
     1.9 +			usage(argv[0]);
    1.10 +			exit(1);
    1.11  		case '?':
    1.12 -		default:
    1.13 +		case 'h':
    1.14  			usage(argv[0]);
    1.15  			exit(0);
    1.16  		case 'V':