libfsimage: Build fix for NetBSD.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 5 Jun 2008 09:33:01 +0000 (10:33 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 5 Jun 2008 09:33:01 +0000 (10:33 +0100)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/libfsimage/zfs/fsys_zfs.c

index 4ada7825ac4bb58a06ecd77f8a2178fdc6e019a5..f9f94d808a174cf6737c5f577b21c3b00ddb118c 100644 (file)
@@ -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;