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

[Xen-changelog] [xen-unstable] xentrace: build fix "array subscript has type 'char'"



# 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


 


Rackspace

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