[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix the check that the argument count is even, for xenstore_write.



# HG changeset patch
# User emellor@ewan
# Node ID f2450805063b07e098500d75c98179c1a9073435
# Parent  98c5c6a1e85787bbbf8b1688c008ebea1fc78c5c
Fix the check that the argument count is even, for xenstore_write.

diff -r 98c5c6a1e857 -r f2450805063b tools/xenstore/xenstore_client.c
--- a/tools/xenstore/xenstore_client.c  Tue Sep 13 14:42:34 2005
+++ b/tools/xenstore/xenstore_client.c  Tue Sep 13 14:46:20 2005
@@ -77,7 +77,7 @@
        /* NOTREACHED */
     }
 #if defined(CLIENT_write)
-    if ((argc - optind) % 1) {
+    if ((argc - optind) % 2 == 1) {
        usage(argv[0]);
        /* NOTREACHED */
     }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.