[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] stubdom: fix do_xen_hypercall error report
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1216975214 -3600 # Node ID 804d29cfd083bb45a5363e71260398b0ded7031e # Parent f0cd9df566ec8801de5497b26d0f6d51277f5d00 stubdom: fix do_xen_hypercall error report call.result is an unsigned long Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx> --- tools/libxc/xc_minios.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r f0cd9df566ec -r 804d29cfd083 tools/libxc/xc_minios.c --- a/tools/libxc/xc_minios.c Thu Jul 24 17:36:27 2008 +0100 +++ b/tools/libxc/xc_minios.c Fri Jul 25 09:40:14 2008 +0100 @@ -117,8 +117,8 @@ int do_xen_hypercall(int xc_handle, priv 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; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |