diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-06-05 10:33:01 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-06-05 10:33:01 +0100 |
commit | 5ad74c5fb2ecae2a71db9b48bfcbe52637d83981 (patch) | |
tree | 91b168371e96c600e09b431d1a4d945e2ae41951 /tools/libfsimage | |
parent | 72c4148247e6238c8d6d37467f047ad7500beb3d (diff) | |
download | xen-5ad74c5fb2ecae2a71db9b48bfcbe52637d83981.tar.gz xen-5ad74c5fb2ecae2a71db9b48bfcbe52637d83981.tar.bz2 xen-5ad74c5fb2ecae2a71db9b48bfcbe52637d83981.zip |
libfsimage: Build fix for NetBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'tools/libfsimage')
-rw-r--r-- | tools/libfsimage/zfs/fsys_zfs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/libfsimage/zfs/fsys_zfs.c b/tools/libfsimage/zfs/fsys_zfs.c index 4ada7825ac..f9f94d808a 100644 --- a/tools/libfsimage/zfs/fsys_zfs.c +++ b/tools/libfsimage/zfs/fsys_zfs.c @@ -776,11 +776,11 @@ dnode_get_path(fsi_file_t *ffi, dnode_phys_t *mdn, char *path, while (*path == '/') path++; - while (*path && !isspace(*path)) { + while (*path && !isspace((uint8_t)*path)) { /* get the next component name */ cname = path; - while (*path && !isspace(*path) && *path != '/') + while (*path && !isspace((uint8_t)*path) && *path != '/') path++; ch = *path; *path = 0; /* ensure null termination */ @@ -890,17 +890,17 @@ get_objset_mdn(fsi_file_t *ffi, dnode_phys_t *mosmdn, char *fsname, } /* take out the pool name */ - while (*fsname && !isspace(*fsname) && *fsname != '/') + while (*fsname && !isspace((uint8_t)*fsname) && *fsname != '/') fsname++; - while (*fsname && !isspace(*fsname)) { + while (*fsname && !isspace((uint8_t)*fsname)) { uint64_t childobj; while (*fsname == '/') fsname++; cname = fsname; - while (*fsname && !isspace(*fsname) && *fsname != '/') + while (*fsname && !isspace((uint8_t)*fsname) && *fsname != '/') fsname++; ch = *fsname; *fsname = 0; |