From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: libxl: build fix Date: Tue, 25 May 2010 11:36:17 +0200 Message-ID: <201005251136.18205.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_So5+LVVhLaqtS3E" 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=_So5+LVVhLaqtS3E Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch makes libxl build again on NetBSD. The build error is: warning: array subscript has type 'char' Note, that we compile libxl with -Werror Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_So5+LVVhLaqtS3E Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_libxl.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_libxl.diff" diff -r 897d8b86deae tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Tue May 25 10:01:18 2010 +0200 +++ b/tools/libxl/xl_cmdimpl.c Tue May 25 11:32:49 2010 +0200 @@ -1226,7 +1226,7 @@ static int64_t parse_mem_size_kb(char *m if (strlen(endptr) > 1) return -1; - switch (tolower(*endptr)) { + switch (tolower((uint8_t)*endptr)) { case 't': kbytes <<= 10; case 'g': --Boundary-00=_So5+LVVhLaqtS3E 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=_So5+LVVhLaqtS3E--