aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-07-25 09:40:14 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-07-25 09:40:14 +0100
commitdba5b800e38f85fc8b5f30d35224cabf4cc12fb5 (patch)
tree5b1e18151c6cf5aaf37d63febecdde2aab952115
parentc4241bc4548ca995da9b6f97aa72027aa3193ab9 (diff)
downloadxen-dba5b800e38f85fc8b5f30d35224cabf4cc12fb5.tar.gz
xen-dba5b800e38f85fc8b5f30d35224cabf4cc12fb5.tar.bz2
xen-dba5b800e38f85fc8b5f30d35224cabf4cc12fb5.zip
stubdom: fix do_xen_hypercall error report
call.result is an unsigned long Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
-rw-r--r--tools/libxc/xc_minios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxc/xc_minios.c b/tools/libxc/xc_minios.c
index 3781907d15..f353b9840c 100644
--- a/tools/libxc/xc_minios.c
+++ b/tools/libxc/xc_minios.c
@@ -117,8 +117,8 @@ int do_xen_hypercall(int xc_handle, privcmd_hypercall_t *hypercall)
errno = -ret;
return -1;
}
- if (call.result < 0) {
- errno = -call.result;
+ if ((long) call.result < 0) {
+ errno = - (long) call.result;
return -1;
}
return call.result;