[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tools/libfsimage: build fix (ctype macros applied to char)



# HG changeset patch
# User Christoph Egger <Christoph.Egger@xxxxxxx>
# Date 1306421002 -3600
# Node ID 276565f729d5e7f4506aa002b7bc312fc3a358f3
# Parent  85cb287300eb2caf5c53303f6bb1279104946b36
tools/libfsimage: build fix (ctype macros applied to char)

Fix warning: array subscript has type 'char'

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 85cb287300eb -r 276565f729d5 tools/libfsimage/xfs/fsys_xfs.c
--- a/tools/libfsimage/xfs/fsys_xfs.c   Thu May 26 15:27:34 2011 +0100
+++ b/tools/libfsimage/xfs/fsys_xfs.c   Thu May 26 15:43:22 2011 +0100
@@ -571,7 +571,7 @@
                        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 @@
 
                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);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.