Build fix for libfsimage
PATCH 1/1 Build fix for libfsimage
Hi!
Attached patch fixes the following build errors on NetBSD:
fsys_zfs.c: In function 'dnode_get_path':
fsys_zfs.c:779: warning: array subscript has type 'char' fsys_zfs.c:783: warning: array subscript has type 'char' fsys_zfs.c: In function 'get_objset_mdn':
fsys_zfs.c:893: warning: array subscript has type 'char' fsys_zfs.c:896: warning: array subscript has type 'char' fsys_zfs.c:903: warning: array subscript has type 'char'
Signed-off-by Christoph Egger <[email protected]>
Signature · 12 lines
AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Geschäftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplementär: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Geschäftsführer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
tools/libfsimage/zfs/fsys_zfs.c +5 -5
@@ -776,11 +776,11 @@ dnode_get_path(fsi_file_t *ffi, dnode_phwhile (*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_ph }/* 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 ;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel