ia64/xen-unstable

changeset 944:d27779dd034c

bitkeeper revision 1.601 (3fb3b29bWxzXUo39xGgX9TIpE757xg)

Cleanup.
author br260@laudney.cl.cam.ac.uk
date Thu Nov 13 16:34:35 2003 +0000 (2003-11-13)
parents 7ae6b4359a0d
children 7a554cbf0f58
files tools/internal/dom0_defs.h
line diff
     1.1 --- a/tools/internal/dom0_defs.h	Thu Nov 13 16:33:55 2003 +0000
     1.2 +++ b/tools/internal/dom0_defs.h	Thu Nov 13 16:34:35 2003 +0000
     1.3 @@ -51,7 +51,7 @@ static inline int do_privcmd(unsigned in
     1.4          PERROR("Error when executing privileged control ioctl");
     1.5  #endif
     1.6          close(fd);
     1.7 -        return -1;
     1.8 +        return ret;
     1.9      }
    1.10  
    1.11      close(fd);
    1.12 @@ -79,7 +79,7 @@ static inline int do_dom0_op(dom0_op_t *
    1.13          goto out1;
    1.14      }
    1.15  
    1.16 -    if ( do_xen_hypercall(&hypercall) < 0 )
    1.17 +    if ( (ret = do_xen_hypercall(&hypercall)) < 0 )
    1.18      {
    1.19          if ( errno == EACCES )
    1.20              fprintf(stderr, "Dom0 operation failed -- need to"
    1.21 @@ -107,7 +107,7 @@ static inline int do_network_op(network_
    1.22          goto out1;
    1.23      }
    1.24  
    1.25 -    if ( do_xen_hypercall(&hypercall) < 0 )
    1.26 +    if ( (ret = do_xen_hypercall(&hypercall)) < 0 )
    1.27          goto out2;
    1.28  
    1.29      ret = 0;