diff options
author | Christoph Egger <Christoph.Egger@amd.com> | 2011-05-26 15:43:22 +0100 |
---|---|---|
committer | Christoph Egger <Christoph.Egger@amd.com> | 2011-05-26 15:43:22 +0100 |
commit | 393375e7271d4a5576ad740a304f9874d6958990 (patch) | |
tree | 6af0d358c0df87f3fd145293bc11bea904ff324b /tools/libfsimage | |
parent | be014da159af4d167ddc73326a489be5eff6466f (diff) | |
download | xen-393375e7271d4a5576ad740a304f9874d6958990.tar.gz xen-393375e7271d4a5576ad740a304f9874d6958990.tar.bz2 xen-393375e7271d4a5576ad740a304f9874d6958990.zip |
tools/libfsimage: build fix (ctype macros applied to char)
Fix warning: array subscript has type 'char'
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libfsimage')
-rw-r--r-- | tools/libfsimage/xfs/fsys_xfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/libfsimage/xfs/fsys_xfs.c b/tools/libfsimage/xfs/fsys_xfs.c index 6366d16d0d..0261a5284a 100644 --- a/tools/libfsimage/xfs/fsys_xfs.c +++ b/tools/libfsimage/xfs/fsys_xfs.c @@ -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); |