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/iso9660 | |
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/iso9660')
-rw-r--r-- | tools/libfsimage/iso9660/fsys_iso9660.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libfsimage/iso9660/fsys_iso9660.c b/tools/libfsimage/iso9660/fsys_iso9660.c index 31a317a637..20254ba4f5 100644 --- a/tools/libfsimage/iso9660/fsys_iso9660.c +++ b/tools/libfsimage/iso9660/fsys_iso9660.c @@ -164,7 +164,7 @@ iso9660_dir (fsi_file_t *ffi, char *dirname) /* pathlen = strcspn(dirname, "/\n\t "); */ for (pathlen = 0 ; dirname[pathlen] - && !isspace(dirname[pathlen]) && dirname[pathlen] != '/' ; + && !isspace((uint8_t)dirname[pathlen]) && dirname[pathlen] != '/' ; pathlen++) ; |