ia64/xen-unstable

changeset 18159:804d29cfd083

stubdom: fix do_xen_hypercall error report

call.result is an unsigned long

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jul 25 09:40:14 2008 +0100 (2008-07-25)
parents f0cd9df566ec
children 7b6942ad565c
files tools/libxc/xc_minios.c
line diff
     1.1 --- a/tools/libxc/xc_minios.c	Thu Jul 24 17:36:27 2008 +0100
     1.2 +++ b/tools/libxc/xc_minios.c	Fri Jul 25 09:40:14 2008 +0100
     1.3 @@ -117,8 +117,8 @@ int do_xen_hypercall(int xc_handle, priv
     1.4  	errno = -ret;
     1.5  	return -1;
     1.6      }
     1.7 -    if (call.result < 0) {
     1.8 -        errno = -call.result;
     1.9 +    if ((long) call.result < 0) {
    1.10 +        errno = - (long) call.result;
    1.11          return -1;
    1.12      }
    1.13      return call.result;