提交 b31ed75b 编写于 作者: D Daniel Veillard

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

  indentation
Daniel
上级 50804b72
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
......
/*
* 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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册