diff options
author | Keir Fraser <keir@xensource.com> | 2007-09-23 12:18:36 +0100 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-09-23 12:18:36 +0100 |
commit | d6f6960a00a6872da0e554aa1a71e634a36226be (patch) | |
tree | 0bbc04013d95b2912eb04fe95f8d94da1bd0ef89 /tools/libfsimage/reiserfs | |
parent | d68181c014cb8c33a8cbdeef2024377c48d9cb7f (diff) | |
download | xen-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/reiserfs')
-rw-r--r-- | tools/libfsimage/reiserfs/fsys_reiserfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libfsimage/reiserfs/fsys_reiserfs.c b/tools/libfsimage/reiserfs/fsys_reiserfs.c index 6bf6067ded..9ec173bf6d 100644 --- a/tools/libfsimage/reiserfs/fsys_reiserfs.c +++ b/tools/libfsimage/reiserfs/fsys_reiserfs.c @@ -1029,7 +1029,7 @@ reiserfs_dir (fsi_file_t *ffi, char *dirname) /* Find out how long our remaining name is. */ len = 0; - while (dirname[len] && !isspace (dirname[len])) + while (dirname[len] && !isspace ((uint8_t)dirname[len])) len++; if (filemax + len > sizeof (linkbuf) - 1) @@ -1078,7 +1078,7 @@ reiserfs_dir (fsi_file_t *ffi, char *dirname) /* if we have a real file (and we're not just printing possibilities), then this is where we want to exit */ - if (! *dirname || isspace (*dirname)) + if (! *dirname || isspace ((uint8_t)*dirname)) { if (! S_ISREG (mode)) { @@ -1109,7 +1109,7 @@ reiserfs_dir (fsi_file_t *ffi, char *dirname) errnum = ERR_BAD_FILETYPE; return 0; } - for (rest = dirname; (ch = *rest) && ! isspace (ch) && ch != '/'; rest++); + for (rest = dirname; (ch = *rest) && ! isspace ((uint8_t)ch) && ch != '/'; rest++); *rest = 0; # ifndef STAGE1_5 |