aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libfsimage/ufs
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-09-23 12:18:36 +0100
committerKeir Fraser <keir@xensource.com>2007-09-23 12:18:36 +0100
commitd6f6960a00a6872da0e554aa1a71e634a36226be (patch)
tree0bbc04013d95b2912eb04fe95f8d94da1bd0ef89 /tools/libfsimage/ufs
parentd68181c014cb8c33a8cbdeef2024377c48d9cb7f (diff)
downloadxen-d6f6960a00a6872da0e554aa1a71e634a36226be.tar.gz
xen-d6f6960a00a6872da0e554aa1a71e634a36226be.tar.bz2
xen-d6f6960a00a6872da0e554aa1a71e634a36226be.zip
Fix libfsimage build on NetBSD.
Fixes a number of these errors: cc1: warnings being treated as errors fsys_fat.c: In function 'fat_dir': fsys_fat.c:304: warning: array subscript has type 'char' Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> These ugly casts are needed according to the ISO C spec. Acked-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/libfsimage/ufs')
-rw-r--r--tools/libfsimage/ufs/fsys_ufs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libfsimage/ufs/fsys_ufs.c b/tools/libfsimage/ufs/fsys_ufs.c
index d187dbf414..a92a6e5307 100644
--- a/tools/libfsimage/ufs/fsys_ufs.c
+++ b/tools/libfsimage/ufs/fsys_ufs.c
@@ -72,13 +72,13 @@ ufs_dir(fsi_file_t *ffi, char *dirname)
while (*dirname == '/')
dirname++;
- while (inode && *dirname && !isspace(*dirname)) {
+ while (inode && *dirname && !isspace((uint8_t)*dirname)) {
if (!openi(ffi, inode))
return 0;
/* parse for next path component */
fname = dirname;
- while (*dirname && !isspace(*dirname) && *dirname != '/')
+ while (*dirname && !isspace((uint8_t)*dirname) && *dirname != '/')
dirname++;
ch = *dirname;
*dirname = 0; /* ensure null termination */