From 7b0a03a1eab52ed2f59c8e4cb2210ee74433a820 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 21 Sep 2011 11:10:52 +0100 Subject: use qemu_* ctype functions Fix "warning: array subscript has type 'char'" on NetBSD. Signed-off-by: Christoph Egger Signed-off-by: Stefan Hajnoczi --- ui/keymaps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/keymaps.c') diff --git a/ui/keymaps.c b/ui/keymaps.c index 81003bb5ca..f54a11437b 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); -- cgit v1.2.1