[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] dup and open error value is -1, not < 0



# HG changeset patch
# User vhanquez@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID df36ac1ddcbfee1c05e8e264c905e1be553d0cf9
# Parent  3a62d89787883bd50e066d584cbfd0ca80f38297
dup and open error value is -1, not < 0

Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx>

diff -r 3a62d8978788 -r df36ac1ddcbf tools/xenstore/utils.c
--- a/tools/xenstore/utils.c    Mon Jan 23 15:27:00 2006
+++ b/tools/xenstore/utils.c    Tue Jan 24 10:37:44 2006
@@ -92,7 +92,7 @@
        else
                fd = open(filename, O_RDONLY, 0);
 
-       if (fd < 0)
+       if (fd == -1)
                return NULL;
 
        buffer = malloc(max+1);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.