From b31ed75bff055c553fadbdf43ad1cb5c4c67560c Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 8 Nov 2007 16:14:12 +0000 Subject: [PATCH] * src/virsh.c: patch from Jim Meyering to correct vshCommandOptInt indentation Daniel --- ChangeLog | 5 +++++ src/virsh.c | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ce684018fd..fd37d8fb95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 8 17:06:50 CET 2007 Daniel Veillard + + * src/virsh.c: patch from Jim Meyering to correct vshCommandOptInt + indentation + Wed Nov 7 14:38:43 CET 2007 Daniel Veillard * docs/libvir.html docs/site.xsl: small updates with references diff --git a/src/virsh.c b/src/virsh.c index 0615a7d446..852dea2afb 100644 --- a/src/virsh.c +++ b/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; -- GitLab