Skip to contentSkip to conversation

Fix compilation issues in xend

PATCH RESEND New Jerone Young 1 participant 1 message Oct 11, 2005

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Fix compilation issues in xend

Something must have happened copying & pasting the patch in the last email I am submitting this one in a text file attached.

Signature · 4 lines
Jerone Young
IBM Linux Technology Center
[email protected]
512-838-1157 (T/L: 678-1157)

# HG changeset patch
# User [email protected]
# Node ID 0eee5f59e216a7bec6fd4160db2d4ae9808c5a61 # Parent 4e335372ace84b605cebc36a42610caadb09a4d8 Fix compilation problems with xenstore.

tools/xenstore/xs_tdb_dump.c +3 -3
diff -r 4e335372ace8 -r 0eee5f59e216 tools/xenstore/xs_tdb_dump.c
@@ -53,17 +53,17 @@
 		hdr = (void *)data.dptr;
 		if (data.dsize < sizeof(*hdr))
 			fprintf(stderr, "%.*s: BAD truncated\n",
-				key.dsize, key.dptr);
+				(int)key.dsize, key.dptr);
 		else if (data.dsize != total_size(hdr))
 			fprintf(stderr, "%.*s: BAD length %i for %i/%i/%i (%i)\n",
-				key.dsize, key.dptr, data.dsize,
+				(int)key.dsize, key.dptr, (int)data.dsize,
 				hdr->num_perms, hdr->datalen,
 				hdr->childlen, total_size(hdr));
 		else {
 			unsigned int i;
 			char *p;
 
-			printf("%.*s: ", key.dsize, key.dptr);
+			printf("%.*s: ", (int)key.dsize, key.dptr);
 			for (i = 0; i < hdr->num_perms; i++)
 				printf("%s%c%i",
 				       i == 0 ? "" : ",",
tools/xenstore/xsls.c +3 -2
diff -r 4e335372ace8 -r 0eee5f59e216 tools/xenstore/xsls.c
@@ -8,7 +8,8 @@
 {
     char **e;
     char newpath[512], *val;
-    int num, i, len;
+    int i;
+    unsigned int num, len;
 
     e = xs_directory(h, NULL, path, &num);
     if (e == NULL)
@@ -25,7 +26,7 @@
         if (val == NULL)
             printf(":\n");
         else if ((unsigned)len > (151 - strlen(e[i])))
-            printf(" = \"%.*s...\"\n", 148 - strlen(e[i]), val);
+            printf(" = \"%.*s...\"\n", (int)(148 - strlen(e[i])), val);
         else
             printf(" = \"%s\"\n", val);
         free(val);

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