diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-08-01 11:25:08 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-08-24 08:40:10 +0200 |
commit | c809d1d2f4e3d40d4767871d3cf9cd78391e5a4f (patch) | |
tree | 194bb9d8907dd13eac1cd25e8049aaafd11335ac /qemu-keymap.c | |
parent | 0ae0b069aa8f23a138cc6d2d83edaa5c22f948a5 (diff) | |
download | qemu-c809d1d2f4e3d40d4767871d3cf9cd78391e5a4f.zip qemu-c809d1d2f4e3d40d4767871d3cf9cd78391e5a4f.tar.gz qemu-c809d1d2f4e3d40d4767871d3cf9cd78391e5a4f.tar.bz2 |
ui: use enum to string helpers
Minor code simplification.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: 20180801092508.4927-1-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qemu-keymap.c')
-rw-r--r-- | qemu-keymap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-keymap.c b/qemu-keymap.c index 6216371..4d00468 100644 --- a/qemu-keymap.c +++ b/qemu-keymap.c @@ -84,7 +84,7 @@ static void walk_map(struct xkb_keymap *map, xkb_keycode_t code, void *data) } fprintf(outfile, "# evdev %d (0x%x), QKeyCode \"%s\", number 0x%x\n", evdev, evdev, - QKeyCode_lookup.array[qcode], + QKeyCode_str(qcode), qcode_to_number(qcode)); /* |