From: Justin Clift Date: Wed, 15 Sep 2010 15:08:14 +0000 (+1000) Subject: virsh: change wexitstatus order to allow compilation on mac osx X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=58ba49ac70c8b9d8081a59b9709fdc7e1e5ae2cc;p=libvirt.git virsh: change wexitstatus order to allow compilation on mac osx This is the simple fix Daniel Veillard suggested last year: http://www.redhat.com/archives/libvir-list/2009-May/msg00459.html --- diff --git a/tools/virsh.c b/tools/virsh.c index 55deb4c2be..85014f2b5d 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -8602,7 +8602,7 @@ editFile (vshControl *ctl, const char *filename) VIR_FREE(command); return -1; } - if (command_ret != WEXITSTATUS (0)) { + if (WEXITSTATUS(command_ret) != 0) { vshError(ctl, _("%s: command exited with non-zero status"), command); VIR_FREE(command);