diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-23 18:29:47 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-23 18:29:47 +0000 |
commit | fc1f79f71ca79ba6be95af9b0c844902b09566a5 (patch) | |
tree | c44e97dc1efbed39bd314264d28a290463643260 /hw/xen_domainbuild.c | |
parent | 00ea18d19e3ed4acc1b4b92a733d34a04a5fb5af (diff) | |
download | qemu-fc1f79f71ca79ba6be95af9b0c844902b09566a5.zip qemu-fc1f79f71ca79ba6be95af9b0c844902b09566a5.tar.gz qemu-fc1f79f71ca79ba6be95af9b0c844902b09566a5.tar.bz2 |
Use a more natural order
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7234 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/xen_domainbuild.c')
-rw-r--r-- | hw/xen_domainbuild.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen_domainbuild.c b/hw/xen_domainbuild.c index 21710eb..20d731d 100644 --- a/hw/xen_domainbuild.c +++ b/hw/xen_domainbuild.c @@ -137,7 +137,7 @@ static void xen_domain_poll(void *opaque) int rc; rc = xc_domain_getinfo(xen_xc, xen_domid, 1, &info); - if ((1 != rc) || (info.domid != xen_domid)) { + if ((rc != 1) || (info.domid != xen_domid)) { qemu_log("xen: domain %d is gone\n", xen_domid); goto quit; } @@ -186,7 +186,7 @@ static void xen_domain_watcher(void) rc = read(fd[0], &byte, 1); switch (rc) { case -1: - if (EINTR == errno) + if (errno == EINTR) continue; qemu_log("%s: Huh? read error: %s\n", __FUNCTION__, strerror(errno)); qemu_running = 0; |