Skip to contentSkip to conversation

gcc-4 fixes for xsls (i386)

PATCH New Anthony Liguori 1 participant 1 message Oct 11, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc-4 fixes for xsls (i386)

The following patch is needed for xsls to compile under gcc-4 on i386. I believe there are other issues with it compiling on x86_64 too related to .*s and strlen.

Regards,

Anthony Liguori

# HG changeset patch
# User Anthony Liguori <[email protected]> # Node ID c1e3fe2c8462278cf0fee235dcfc36e11b00aed6 # Parent 50540a0583f3d7837e4eb5ea9843f53636b58f29 Signed-ness matters in gcc-4

tools/xenstore/xsls.c +2 -1
diff -r 50540a0583f3 -r c1e3fe2c8462 tools/xenstore/xsls.c
@@ -8,7 +8,8 @@
 {
     char **e;
     char newpath[512], *val;
-    int num, i, len;
+    unsigned int num, len;
+    int i;
 
     e = xs_directory(h, NULL, path, &num);
     if (e == NULL)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel