From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0R-0007cF-Q2 for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6K0P-0006Pw-Eu for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:19 -0400 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:35544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0P-0006Pi-1c for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:17 -0400 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate2.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p8LAQGX5031700 for ; Wed, 21 Sep 2011 10:26:16 GMT Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8LAQF3j2486274 for ; Wed, 21 Sep 2011 11:26:16 +0100 Received: from d06av07.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8LAQFKq006590 for ; Wed, 21 Sep 2011 04:26:15 -0600 From: Stefan Hajnoczi Date: Wed, 21 Sep 2011 11:26:06 +0100 Message-Id: <1316600766-5541-9-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1316600766-5541-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1316600766-5541-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 8/8] use qemu_* ctype functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Christoph Egger , Stefan Hajnoczi From: Christoph Egger Fix "warning: array subscript has type 'char'" on NetBSD. Signed-off-by: Christoph Egger Signed-off-by: Stefan Hajnoczi --- cmd.c | 2 +- ui/keymaps.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 81003bb..f54a114 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); -- 1.7.5.4