From patchwork Wed Sep 21 10:26:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 115762 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EBFC4B6F7C for ; Wed, 21 Sep 2011 21:07:52 +1000 (EST) Received: from localhost ([::1]:46709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K16-000185-2c for incoming@patchwork.ozlabs.org; Wed, 21 Sep 2011 06:27:00 -0400 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 Received: from localhost ([9.79.3.245]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p8LAQFmI006585; Wed, 21 Sep 2011 04:26:15 -0600 From: Stefan Hajnoczi To: Date: Wed, 21 Sep 2011 11:26:06 +0100 Message-Id: <1316600766-5541-9-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.5.4 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.196.100.162 Cc: Anthony Liguori , Christoph Egger , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 8/8] use qemu_* ctype functions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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);