Fix the highest bit of IR keytable util
authorDarren Tucker <dtucker@zip.com.au>
Sat, 4 Jun 2011 01:50:07 +0000 (22:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Jun 2011 10:58:17 +0000 (07:58 -0300)
commit377b53cd2bd78e6e25a5b546889ec37e94d4d579
tree846363f5ad291ab27aaf41499d99e9f9b9251569
parentfb59fc6ccded210fe384d76239c8504152f9a59b
Fix the highest bit of IR keytable util

I have a Nuvoton IR interface (part of an ION board) which has scancodes
with the high bit set, and ir-keytable won't accept these (since strtol
doesn't).  Since "codes" is an unsigned, using strtoul fixes this.
I also added a signedness fix in debug output and fixed a typo.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/keytable/keytable.c