From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: [PATCH] gcc-4 fixes for xsls (i386) Date: Tue, 11 Oct 2005 10:58:47 -0500 Message-ID: <434BE137.4090802@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080300090106090108010006" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------080300090106090108010006 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. Signed-off-by: Anthony Liguori Regards, Anthony Liguori --------------080300090106090108010006 Content-Type: text/x-patch; name="7316_xenstore_build.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="7316_xenstore_build.diff" # HG changeset patch # User Anthony Liguori # Node ID c1e3fe2c8462278cf0fee235dcfc36e11b00aed6 # Parent 50540a0583f3d7837e4eb5ea9843f53636b58f29 Signed-ness matters in gcc-4 Signed-off-by: Anthony Liguori diff -r 50540a0583f3 -r c1e3fe2c8462 tools/xenstore/xsls.c --- a/tools/xenstore/xsls.c Tue Oct 11 10:51:26 2005 -0500 +++ b/tools/xenstore/xsls.c Tue Oct 11 10:52:23 2005 -0500 @@ -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) --------------080300090106090108010006 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------080300090106090108010006--