From: Christoph Egger Subject: [PATCH] xentrace: build fix Date: Tue, 11 Jan 2011 15:53:43 +0100 Message-ID: <201101111553.43736.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_37GLNLFkVNocNoA" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_37GLNLFkVNocNoA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch fixes warnings: "array subscript has type 'char'" Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_37GLNLFkVNocNoA Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_xentrace_build.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_xentrace_build.diff" Content-Description: xen_xentrace_build.diff diff -r 2007ca4414ab tools/xentrace/xenctx.c --- a/tools/xentrace/xenctx.c Tue Jan 11 15:34:30 2011 +0100 +++ b/tools/xentrace/xenctx.c Tue Jan 11 15:52:34 2011 +0100 @@ -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 --Boundary-00=_37GLNLFkVNocNoA Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_37GLNLFkVNocNoA--