From 58ba49ac70c8b9d8081a59b9709fdc7e1e5ae2cc Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Thu, 16 Sep 2010 01:08:14 +1000 Subject: [PATCH] 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 --- tools/virsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);