From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: tools/libfsimage: build fix Date: Wed, 25 May 2011 16:21:20 +0200 Message-ID: <4DDD1060.5020904@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020702070801060702070605" 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@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --------------020702070801060702070605 Content-Type: text/plain; charset="ISO-8859-15"; format=flowed Content-Transfer-Encoding: 7bit Fix warning: array subscript has type 'char' Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --------------020702070801060702070605 Content-Type: text/plain; name="xen_tools_libfsimage.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_tools_libfsimage.diff" Content-Description: xen_tools_libfsimage.diff diff -r 87ff9d4de6f0 tools/libfsimage/xfs/fsys_xfs.c --- a/tools/libfsimage/xfs/fsys_xfs.c Wed May 25 16:04:56 2011 +0200 +++ b/tools/libfsimage/xfs/fsys_xfs.c Wed May 25 16:17:03 2011 +0200 @@ -571,7 +571,7 @@ xfs_dir (fsi_file_t *ffi, char *dirname) continue; } - if (!*dirname || isspace (*dirname)) { + if (!*dirname || isspace ((uint8_t)*dirname)) { if ((di_mode & IFMT) != IFREG) { errnum = ERR_BAD_FILETYPE; return 0; @@ -588,7 +588,8 @@ xfs_dir (fsi_file_t *ffi, char *dirname) for (; *dirname == '/'; dirname++); - for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != '/'; rest++); + for (rest = dirname; (ch = *rest) + && !isspace ((uint8_t)ch) && ch != '/'; rest++); *rest = 0; name = first_dentry (ffi, &new_ino); --------------020702070801060702070605 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 --------------020702070801060702070605--