* src/virsh.c: patch from Jim Meyering to correct vshCommandOptInt

indentation
Daniel
This commit is contained in:
Daniel Veillard 2007-11-08 16:14:12 +00:00
parent 50804b725b
commit b31ed75bff
2 changed files with 10 additions and 5 deletions

View File

@ -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

View 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;