stubdom: fix do_xen_hypercall error report
PATCH 1/1 stubdom: fix do_xen_hypercall error report
stubdom: fix do_xen_hypercall error report
call.result is an unsigned long
Signed-off-by Samuel Thibault <[email protected]>
tools/libxc/xc_minios.c +2 -2
@@ -102,8 +102,8 @@ 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;