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] xentrace: build fix "array subscript has

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xentrace: build fix "array subscript has type 'char'"
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 17 Jan 2011 07:59:38 -0800
Delivery-date: Mon, 17 Jan 2011 08:13:20 -0800
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 Keir Fraser <keir@xxxxxxx>
# Date 1294758621 0
# Node ID 9ee86e8cfd786aa2c71c8cc9d970712cdefdb161
# Parent  ae51abc964ee8f6b8a6a2f8582f6b6023bc39bcc
xentrace: build fix "array subscript has type 'char'"

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/xentrace/xenctx.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r ae51abc964ee -r 9ee86e8cfd78 tools/xentrace/xenctx.c
--- a/tools/xentrace/xenctx.c   Tue Jan 11 15:09:23 2011 +0000
+++ b/tools/xentrace/xenctx.c   Tue Jan 11 15:10:21 2011 +0000
@@ -178,12 +178,12 @@ static void read_symbol_table(const char
 
         /* need more checks for syntax here... */
         symbol->address = strtoull(line, &p, 16);
-        if (!isspace(*p++))
+        if (!isspace((uint8_t)*p++))
             continue;
         type = *p++;
-        if (!isalpha(type) && type != '?')
+        if (!isalpha((uint8_t)type) && type != '?')
             continue;
-        if (!isspace(*p++))
+        if (!isspace((uint8_t)*p++))
             continue;
 
         /* in the future we should handle the module name

_______________________________________________
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] xentrace: build fix "array subscript has type 'char'", Xen patchbot-unstable <=