mirror of https://github.com/xqemu/xqemu.git
use qemu_* ctype functions
Fix "warning: array subscript has type 'char'" on NetBSD. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
8b3692d136
commit
7b0a03a1ea
2
cmd.c
2
cmd.c
|
@ -389,7 +389,7 @@ cvtnum(
|
||||||
if (sp[1] != '\0')
|
if (sp[1] != '\0')
|
||||||
return -1LL;
|
return -1LL;
|
||||||
|
|
||||||
c = tolower(*sp);
|
c = qemu_tolower(*sp);
|
||||||
switch (c) {
|
switch (c) {
|
||||||
default:
|
default:
|
||||||
return i;
|
return i;
|
||||||
|
|
|
@ -146,7 +146,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table,
|
||||||
if (rest && strstr(rest, "addupper")) {
|
if (rest && strstr(rest, "addupper")) {
|
||||||
char *c;
|
char *c;
|
||||||
for (c = line; *c; c++)
|
for (c = line; *c; c++)
|
||||||
*c = toupper(*c);
|
*c = qemu_toupper(*c);
|
||||||
keysym = get_keysym(table, line);
|
keysym = get_keysym(table, line);
|
||||||
if (keysym)
|
if (keysym)
|
||||||
add_keysym(line, keysym, keycode | SCANCODE_SHIFT, k);
|
add_keysym(line, keysym, keycode | SCANCODE_SHIFT, k);
|
||||||
|
|
Loading…
Reference in New Issue