diff options
author | Keir Fraser <keir@xen.org> | 2011-01-11 15:10:21 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-01-11 15:10:21 +0000 |
commit | e23f7e77abb49296c53629dd3c72dec8e3a296dc (patch) | |
tree | 7f1496883af249a3efaf33cd566cf194fa175d11 | |
parent | ca20d83c4b8831cb2c076e8f6785af34323f3871 (diff) | |
download | xen-e23f7e77abb49296c53629dd3c72dec8e3a296dc.tar.gz xen-e23f7e77abb49296c53629dd3c72dec8e3a296dc.tar.bz2 xen-e23f7e77abb49296c53629dd3c72dec8e3a296dc.zip |
xentrace: build fix "array subscript has type 'char'"
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
-rw-r--r-- | tools/xentrace/xenctx.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |