]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
* src/virsh.c: patch from Jim Meyering to correct vshCommandOptInt
authorDaniel Veillard <veillard@redhat.com>
Thu, 8 Nov 2007 16:14:12 +0000 (16:14 +0000)
committerDaniel Veillard <veillard@redhat.com>
Thu, 8 Nov 2007 16:14:12 +0000 (16:14 +0000)
  indentation
Daniel

ChangeLog
src/virsh.c

index ce684018fd72399083dbf1804984befafc41089b..fd37d8fb95d88e8970833bf94c340d0e78817720 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Nov  8 17:06:50 CET 2007 Daniel Veillard <veillard@redhat.com>
+
+       * src/virsh.c: patch from Jim Meyering to correct vshCommandOptInt
+         indentation
+
 Wed Nov  7 14:38:43 CET 2007 Daniel Veillard <veillard@redhat.com>
 
        * docs/libvir.html docs/site.xsl: small updates with references
index 0615a7d44623e8db29d057c733aa1cbccbd26a80..852dea2afb4babb9824929d5290112af3ced5c88 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * virsh.c: a Xen shell used to exercise the libvirt API
  *
- * Copyright (C) 2005 Red Hat, Inc.
+ * Copyright (C) 2005, 2007 Red Hat, Inc.
  *
  * See COPYING.LIB for the License of this software
  *
@@ -3956,10 +3956,10 @@ vshCommandOptInt(vshCmd * cmd, const char *name, int *found)
 
     if ((arg != NULL) && (arg->data != NULL)) {
         res = strtol(arg->data, &end_p, 10);
-       if ((arg->data == end_p) || (*end_p!= 0))
-           num_found = FALSE;
-       else
-           num_found = TRUE;
+        if ((arg->data == end_p) || (*end_p!= 0))
+            num_found = FALSE;
+        else
+            num_found = TRUE;
     }
     if (found)
         *found = num_found;