WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] tools/libfsimage: build fix (ctype macros

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools/libfsimage: build fix (ctype macros applied to char)
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Thu, 16 Jun 2011 11:12:00 +0100
Delivery-date: Thu, 16 Jun 2011 03:20:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Christoph Egger <Christoph.Egger@xxxxxxx>
# Date 1306421002 -3600
# Node ID 276565f729d5e7f4506aa002b7bc312fc3a358f3
# Parent  85cb287300eb2caf5c53303f6bb1279104946b36
tools/libfsimage: build fix (ctype macros applied to char)

Fix warning: array subscript has type 'char'

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 85cb287300eb -r 276565f729d5 tools/libfsimage/xfs/fsys_xfs.c
--- a/tools/libfsimage/xfs/fsys_xfs.c   Thu May 26 15:27:34 2011 +0100
+++ b/tools/libfsimage/xfs/fsys_xfs.c   Thu May 26 15:43:22 2011 +0100
@@ -571,7 +571,7 @@
                        continue;
                }
 
-               if (!*dirname || isspace (*dirname)) {
+               if (!*dirname || isspace ((uint8_t)*dirname)) {
                        if ((di_mode & IFMT) != IFREG) {
                                errnum = ERR_BAD_FILETYPE;
                                return 0;
@@ -588,7 +588,8 @@
 
                for (; *dirname == '/'; dirname++);
 
-               for (rest = dirname; (ch = *rest) && !isspace (ch) && ch != 
'/'; rest++);
+               for (rest = dirname; (ch = *rest)
+                   && !isspace ((uint8_t)ch) && ch != '/'; rest++);
                *rest = 0;
 
                name = first_dentry (ffi, &new_ino);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools/libfsimage: build fix (ctype macros applied to char), Xen patchbot-unstable <=