ia64/xen-unstable

changeset 8638:df36ac1ddcbf

dup and open error value is -1, not < 0

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vhanquez@kneesa.uk.xensource.com
date Tue Jan 24 10:37:44 2006 +0000 (2006-01-24)
parents 3a62d8978788
children b89b94c71b2f
files tools/xenstore/utils.c
line diff
     1.1 --- a/tools/xenstore/utils.c	Mon Jan 23 16:27:00 2006 +0100
     1.2 +++ b/tools/xenstore/utils.c	Tue Jan 24 10:37:44 2006 +0000
     1.3 @@ -92,7 +92,7 @@ void *grab_file(const char *filename, un
     1.4  	else
     1.5  		fd = open(filename, O_RDONLY, 0);
     1.6  
     1.7 -	if (fd < 0)
     1.8 +	if (fd == -1)
     1.9  		return NULL;
    1.10  
    1.11  	buffer = malloc(max+1);