This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: ir-keytable: Be a little more pedantic with EVIOGKEYCODE
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Tue Jan 25 12:07:53 2011 -0200

V1 always use u_int32_t. V2 can use different lengths, but,
currently, the tool is not ready for bigger code sizes.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 utils/keytable/keytable.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=39741f05db535f70626d46370de58ac003e4f141

diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 92ad7ee..e36a72b 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -45,7 +45,7 @@ struct input_keymap_entry_v2 {
 #endif
 
 struct keytable {
-       int codes[2];
+       u_int32_t codes[2];
        struct input_keymap_entry_v2 keymap;
        struct keytable *next;
 };
@@ -1126,7 +1126,7 @@ static int get_input_protocol_version(int fd)
 static void clear_table(int fd)
 {
        int i, j;
-       int codes[2];
+       u_int32_t codes[2];
        struct input_keymap_entry_v2 entry;
 
        /* Clears old table */
@@ -1280,6 +1280,7 @@ static void display_table_v2(struct rc_device *rc_dev, 
int fd)
        do {
                entry.flags = KEYMAP_BY_INDEX;
                entry.index = i;
+               entry.len = sizeof(u_int32_t);
 
                if (ioctl(fd, EVIOCGKEYCODE_V2, &entry) == -1)
                        break;

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to