ia64/xen-unstable

changeset 17785:0204b5368145

libfsimage: Build fix for NetBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 05 10:33:01 2008 +0100 (2008-06-05)
parents b346fb1b8223
children 02132fc864b4
files tools/libfsimage/zfs/fsys_zfs.c
line diff
     1.1 --- a/tools/libfsimage/zfs/fsys_zfs.c	Thu Jun 05 10:31:17 2008 +0100
     1.2 +++ b/tools/libfsimage/zfs/fsys_zfs.c	Thu Jun 05 10:33:01 2008 +0100
     1.3 @@ -776,11 +776,11 @@ dnode_get_path(fsi_file_t *ffi, dnode_ph
     1.4  	while (*path == '/')
     1.5  		path++;
     1.6  
     1.7 -	while (*path && !isspace(*path)) {
     1.8 +	while (*path && !isspace((uint8_t)*path)) {
     1.9  
    1.10  		/* get the next component name */
    1.11  		cname = path;
    1.12 -		while (*path && !isspace(*path) && *path != '/')
    1.13 +		while (*path && !isspace((uint8_t)*path) && *path != '/')
    1.14  			path++;
    1.15  		ch = *path;
    1.16  		*path = 0;   /* ensure null termination */
    1.17 @@ -890,17 +890,17 @@ get_objset_mdn(fsi_file_t *ffi, dnode_ph
    1.18  	}
    1.19  
    1.20  	/* take out the pool name */
    1.21 -	while (*fsname && !isspace(*fsname) && *fsname != '/')
    1.22 +	while (*fsname && !isspace((uint8_t)*fsname) && *fsname != '/')
    1.23  		fsname++;
    1.24  
    1.25 -	while (*fsname && !isspace(*fsname)) {
    1.26 +	while (*fsname && !isspace((uint8_t)*fsname)) {
    1.27  		uint64_t childobj;
    1.28  
    1.29  		while (*fsname == '/')
    1.30  			fsname++;
    1.31  
    1.32  		cname = fsname;
    1.33 -		while (*fsname && !isspace(*fsname) && *fsname != '/')
    1.34 +		while (*fsname && !isspace((uint8_t)*fsname) && *fsname != '/')
    1.35  			fsname++;
    1.36  		ch = *fsname;
    1.37  		*fsname = 0;