diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-04-09 17:36:09 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-04-09 17:36:09 +0200 |
commit | 293adde407f0adfc9546fdbe3169f617f28771b7 (patch) | |
tree | 5722ddf12d0a52aa728dc70eec80eceab0da0a28 /input-kbd.c | |
parent | 3481f7bc531a2010c7e83940b6ed1f1b5b6e8b6f (diff) | |
download | input-293adde407f0adfc9546fdbe3169f617f28771b7.tar.gz |
lsinput overhaul
Diffstat (limited to 'input-kbd.c')
-rw-r--r-- | input-kbd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/input-kbd.c b/input-kbd.c index 6825ea9..09d6022 100644 --- a/input-kbd.c +++ b/input-kbd.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <stdlib.h> +#include <stdbool.h> #include <string.h> #include <time.h> #include <unistd.h> @@ -186,11 +187,11 @@ static void kbd_print_bits(int fd) } } -static void show_kbd(int fd, unsigned int protocol_version) +static void show_kbd(int nr, int fd, unsigned int protocol_version) { struct kbd_map *map; - device_info(fd); + device_info(nr, fd, true); map = kbd_map_read(fd, protocol_version); if (map) @@ -278,7 +279,7 @@ int main(int argc, char *argv[]) if (mapfile) set_kbd(fd, protocol_version, mapfile); else - show_kbd(fd, protocol_version); + show_kbd(devnr, fd, protocol_version); rc = EXIT_SUCCESS; |