From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6IpL-0002yZ-8m for qemu-devel@nongnu.org; Wed, 21 Sep 2011 05:10:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6IpK-0007YO-0b for qemu-devel@nongnu.org; Wed, 21 Sep 2011 05:10:47 -0400 Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14]:7106 helo=TX2EHSOBE007.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6IpJ-0007YH-M5 for qemu-devel@nongnu.org; Wed, 21 Sep 2011 05:10:45 -0400 Received: from mail67-tx2 (localhost.localdomain [127.0.0.1]) by mail67-tx2-R.bigfish.com (Postfix) with ESMTP id B0B9C21820E for ; Wed, 21 Sep 2011 09:10:43 +0000 (UTC) Received: from TX2EHSMHS025.bigfish.com (unknown [10.9.14.252]) by mail67-tx2.bigfish.com (Postfix) with ESMTP id 8600815D004E for ; Wed, 21 Sep 2011 09:10:43 +0000 (UTC) Received: from sausexedgep02.amd.com (sausexedgep02-ext.amd.com [163.181.249.73]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ausb3twp02.amd.com (Axway MailGate 3.8.1) with ESMTP id 22818C82A5 for ; Wed, 21 Sep 2011 04:10:38 -0500 (CDT) Message-ID: <4E79AA0F.1000500@amd.com> Date: Wed, 21 Sep 2011 11:10:39 +0200 From: Christoph Egger MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060304090005060700090407" Subject: [Qemu-devel] [PATCH] use qemu_* ctype functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" --------------060304090005060700090407 Content-Type: text/plain; charset="ISO-8859-15"; format=flowed Content-Transfer-Encoding: 7bit Fix "warning: array subscript has type 'char' " on NetBSD. Signed-off-by: Christoph Egger diff --git a/cmd.c b/cmd.c index ecca167..f77897e 100644 --- a/cmd.c +++ b/cmd.c @@ -389,7 +389,7 @@ cvtnum( if (sp[1] != '\0') return -1LL; - c = tolower(*sp); + c = qemu_tolower(*sp); switch (c) { default: return i; diff --git a/ui/keymaps.c b/ui/keymaps.c index 78c7ea3..0545d49 100644 --- a/ui/keymaps.c +++ b/ui/keymaps.c @@ -146,7 +146,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, if (rest && strstr(rest, "addupper")) { char *c; for (c = line; *c; c++) - *c = toupper(*c); + *c = qemu_toupper(*c); keysym = get_keysym(table, line); if (keysym) add_keysym(line, keysym, keycode | SCANCODE_SHIFT, k); -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --------------060304090005060700090407 Content-Type: text/plain; name="qemu_ctype.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu_ctype.diff" Content-Description: qemu_ctype.diff diff --git a/cmd.c b/cmd.c index ecca167..f77897e 100644 --- a/cmd.c +++ b/cmd.c @@ -389,7 +389,7 @@ cvtnum( if (sp[1] != '\0') return -1LL; - c = tolower(*sp); + c = qemu_tolower(*sp); switch (c) { default: return i; diff --git a/ui/keymaps.c b/ui/keymaps.c index 78c7ea3..0545d49 100644 --- a/ui/keymaps.c +++ b/ui/keymaps.c @@ -146,7 +146,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, if (rest && strstr(rest, "addupper")) { char *c; for (c = line; *c; c++) - *c = toupper(*c); + *c = qemu_toupper(*c); keysym = get_keysym(table, line); if (keysym) add_keysym(line, keysym, keycode | SCANCODE_SHIFT, k); --------------060304090005060700090407--