Skip to contentSkip to conversation

signed/unsigned patch

PATCH Flavio Leitner 2 participants 2 messages Jun 9, 2005 – Jun 10, 2005 Arm/actions semi architecture

lore
Share & tools
lore
#0 lore raw

Against bk xeno-unstable.

Correct some signed int to unsigned variables to fix gcc 4.X warning messages.

===== tools/python/xen/lowlevel/xs/xs.c 1.1 vs edited =====

tools/python/xen/lowlevel/xs/xs.c +3 -3
@@ -85,7 +85,7 @@
 
     struct xs_handle *xh = xshandle(self);
     char *xsval = NULL;
-    int xsval_n = 0;
+    unsigned int xsval_n = 0;
     PyObject *val = NULL;
 
     if (!xh)
@@ -134,7 +134,7 @@
     struct xs_handle *xh = xshandle(self);
     PyObject *val = NULL;
     char **xsval = NULL;
-    int xsval_n = 0;
+    unsigned int xsval_n = 0;
     int i;
 
     if (!xh)
@@ -183,7 +183,7 @@
     struct xs_handle *xh = xshandle(self);
     PyObject *val = NULL;
     struct xs_permissions *perms;
-    int perms_n = 0;
+    unsigned int perms_n = 0;
     int i;
 
     if (!xh)
Signature · 2 lines
Flávio Bruno Leitner <[email protected]>
[0EA2 7F40 4CF4 1E63 4AF6  33C0 3E10 E205 F251 EDDA]