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
This commit is contained in:
Justin Clift 2010-09-16 01:08:14 +10:00
parent 63d1b07f83
commit 58ba49ac70

View File

@ -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);