From e23f7e77abb49296c53629dd3c72dec8e3a296dc Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 11 Jan 2011 15:10:21 +0000 Subject: xentrace: build fix "array subscript has type 'char'" Signed-off-by: Christoph Egger --- tools/xentrace/xenctx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/xentrace') diff --git a/tools/xentrace/xenctx.c b/tools/xentrace/xenctx.c index ac1b6d57de..ca81664e26 100644 --- a/tools/xentrace/xenctx.c +++ b/tools/xentrace/xenctx.c @@ -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 -- cgit v1.2.3