mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
* src/virsh.c: patch from Jim Meyering to correct vshCommandOptInt
indentation Daniel
This commit is contained in:
parent
50804b725b
commit
b31ed75bff
@ -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
|
||||
|
10
src/virsh.c
10
src/virsh.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user