From: Jerone Young <jyoung5@us.ibm.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH][RESEND] Fix compilation issues in xend
Date: Tue, 11 Oct 2005 12:36:29 -0500 [thread overview]
Message-ID: <1129052189.3208.6.camel@thinkpad> (raw)
[-- Attachment #1: Type: text/plain, Size: 269 bytes --]
Something must have happened copying & pasting the patch in the last
email I am submitting this one in a text file attached.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
--
Jerone Young
IBM Linux Technology Center
jyoung5@us.ibm.com
512-838-1157 (T/L: 678-1157)
[-- Attachment #2: xenstore_compile_fix.diff --]
[-- Type: text/x-patch, Size: 1764 bytes --]
# HG changeset patch
# User root@localhost.localdomain
# Node ID 0eee5f59e216a7bec6fd4160db2d4ae9808c5a61
# Parent 4e335372ace84b605cebc36a42610caadb09a4d8
Fix compilation problems with xenstore.
diff -r 4e335372ace8 -r 0eee5f59e216 tools/xenstore/xs_tdb_dump.c
--- a/tools/xenstore/xs_tdb_dump.c Tue Oct 11 14:23:19 2005
+++ b/tools/xenstore/xs_tdb_dump.c Wed Oct 12 02:35:10 2005
@@ -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 ? "" : ",",
diff -r 4e335372ace8 -r 0eee5f59e216 tools/xenstore/xsls.c
--- a/tools/xenstore/xsls.c Tue Oct 11 14:23:19 2005
+++ b/tools/xenstore/xsls.c Wed Oct 12 02:35:10 2005
@@ -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);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2005-10-11 17:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1129052189.3208.6.camel@thinkpad \
--to=jyoung5@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.