[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libfsimage: Build fix for NetBSD.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1212658381 -3600
# Node ID 0204b53681454c3ab750660c909a3758ac88b952
# Parent  b346fb1b8223acfd7641895ff57b95f96c9ab8ce
libfsimage: Build fix for NetBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/libfsimage/zfs/fsys_zfs.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff -r b346fb1b8223 -r 0204b5368145 tools/libfsimage/zfs/fsys_zfs.c
--- a/tools/libfsimage/zfs/fsys_zfs.c   Thu Jun 05 10:31:17 2008 +0100
+++ b/tools/libfsimage/zfs/fsys_zfs.c   Thu Jun 05 10:33:01 2008 +0100
@@ -776,11 +776,11 @@ dnode_get_path(fsi_file_t *ffi, dnode_ph
        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_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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.