summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver McFadden <oliver.mcfadden@nokia.com>2010-04-20 05:48:33 +0300
committerOliver McFadden <oliver.mcfadden@nokia.com>2010-04-20 09:12:38 +0300
commita4f2d12cd8fbd19d13a184c45817d7539cb7e3be (patch)
tree966d3d42cee104a2ffed1017cbae82d290f5e3ae
parent6b5c0401e2b8fe1637f937739e822a33206ef1ac (diff)
evdev: ioctl() may return a negative value therefor use a signed integer.
Signed-off-by: Oliver McFadden <oliver.mcfadden@nokia.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/evdev.c b/src/evdev.c
index e4ca84e..6992c68 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1633,8 +1633,7 @@ static int
EvdevCacheCompare(InputInfoPtr pInfo, BOOL compare)
{
EvdevPtr pEvdev = pInfo->private;
- size_t len;
- int i;
+ int i, len;
char name[1024] = {0};
unsigned long bitmask[NLONGS(EV_CNT)] = {0};