From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: [PATCH] fix tool pygrub build on x64 Date: Mon, 16 May 2005 14:15:33 -0500 Message-ID: <1116270934.4807.92.camel@thinkpad> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-g1DQEhhIumFspfFDJLwl" 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 --=-g1DQEhhIumFspfFDJLwl Content-Type: text/plain Content-Transfer-Encoding: 7bit This fixes tool pygrub to build on x86-64 systems. Currently gcc is saying there are incompatible pointer type passed into function ext2fs_file_read. The address of variable n is used in ext2fs_file_read which takes an "unsigned int *" as the 4th variable. "n" is currently declared as an "size_t" which is an "int". This declares n as an "unsigned int" instead of using type "size_t". -- Jerone Young IBM Linux Technology Center jyoung5@us.ibm.com 512-838-1157 (T/L: 678-1157) --=-g1DQEhhIumFspfFDJLwl Content-Disposition: attachment; filename=pygrub_x64_patch.diff Content-Type: text/x-patch; name=pygrub_x64_patch.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit --- tools/pygrub/src/fsys/ext2/ext2module.c.orig 2005-05-16 13:41:31.833244872 -0500 +++ tools/pygrub/src/fsys/ext2/ext2module.c 2005-05-16 13:49:44.573336992 -0500 @@ -55,7 +55,7 @@ static PyObject * ext2_file_read (Ext2File *file, PyObject *args) { int err, size = 0; - size_t n, total = 0; + unsigned int n, total = 0; PyObject * buffer = NULL; if (file->file == NULL) { --=-g1DQEhhIumFspfFDJLwl 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 --=-g1DQEhhIumFspfFDJLwl--