From: Christoph Egger Subject: [PATCH][TOOLS] Build fix for libfsimage Date: Tue, 3 Jun 2008 17:40:31 +0200 Message-ID: <200806031740.31510.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_vXWRIAuiCA5WblC" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_vXWRIAuiCA5WblC Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_vXWRIAuiCA5WblC Content-Type: text/x-diff; charset="iso-8859-1"; name="tools_zfs.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tools_zfs.diff" diff -r 5603534c62f9 tools/libfsimage/zfs/fsys_zfs.c --- a/tools/libfsimage/zfs/fsys_zfs.c Tue Jun 03 09:41:19 2008 +0100 +++ b/tools/libfsimage/zfs/fsys_zfs.c Tue Jun 03 17:25:17 2008 +0200 @@ -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; --Boundary-00=_vXWRIAuiCA5WblC Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_vXWRIAuiCA5WblC--