ia64/xen-unstable

changeset 6793:f2450805063b

Fix the check that the argument count is even, for xenstore_write.
author emellor@ewan
date Tue Sep 13 15:46:20 2005 +0100 (2005-09-13)
parents 98c5c6a1e857
children 4d899a738d59 3cc679a35d71
files tools/xenstore/xenstore_client.c
line diff
     1.1 --- a/tools/xenstore/xenstore_client.c	Tue Sep 13 15:42:34 2005 +0100
     1.2 +++ b/tools/xenstore/xenstore_client.c	Tue Sep 13 15:46:20 2005 +0100
     1.3 @@ -77,7 +77,7 @@ main(int argc, char **argv)
     1.4  	/* NOTREACHED */
     1.5      }
     1.6  #if defined(CLIENT_write)
     1.7 -    if ((argc - optind) % 1) {
     1.8 +    if ((argc - optind) % 2 == 1) {
     1.9  	usage(argv[0]);
    1.10  	/* NOTREACHED */
    1.11      }