]> xenbits.xensource.com Git - xen.git/commitdiff
xentrace: build fix "array subscript has type 'char'"
authorKeir Fraser <keir@xen.org>
Tue, 11 Jan 2011 15:10:21 +0000 (15:10 +0000)
committerKeir Fraser <keir@xen.org>
Tue, 11 Jan 2011 15:10:21 +0000 (15:10 +0000)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
tools/xentrace/xenctx.c

index ac1b6d57de6fbde00c2db66fe0db727e2d583217..ca81664e26a14bb00d3fd9953d76a58529f963bb 100644 (file)
@@ -178,12 +178,12 @@ static void read_symbol_table(const char *symtab)
 
         /* 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