From 4616c79f6cc6d81c1d9d27efa05ffaf51d521d2b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 16 Feb 2009 11:15:25 +1000 Subject: Change cached bitmasks from long to unsigned long. Signed-off-by: Peter Hutterer --- src/evdev.c | 10 +++++----- src/evdev.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 8f037fb..ec652d9 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1208,11 +1208,11 @@ EvdevCacheCompare(InputInfoPtr pInfo, BOOL compare) int i; char name[1024] = {0}; - long bitmask[NLONGS(EV_CNT)] = {0}; - long key_bitmask[NLONGS(KEY_CNT)] = {0}; - long rel_bitmask[NLONGS(REL_CNT)] = {0}; - long abs_bitmask[NLONGS(ABS_CNT)] = {0}; - long led_bitmask[NLONGS(LED_CNT)] = {0}; + unsigned long bitmask[NLONGS(EV_CNT)] = {0}; + unsigned long key_bitmask[NLONGS(KEY_CNT)] = {0}; + unsigned long rel_bitmask[NLONGS(REL_CNT)] = {0}; + unsigned long abs_bitmask[NLONGS(ABS_CNT)] = {0}; + unsigned long led_bitmask[NLONGS(LED_CNT)] = {0}; struct input_absinfo absinfo[ABS_CNT]; if (ioctl(pInfo->fd, diff --git a/src/evdev.h b/src/evdev.h index ba3de68..68380cf 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -141,11 +141,11 @@ typedef struct { /* Cached info from device. */ char name[1024]; - long bitmask[NLONGS(EV_CNT)]; - long key_bitmask[NLONGS(KEY_CNT)]; - long rel_bitmask[NLONGS(REL_CNT)]; - long abs_bitmask[NLONGS(ABS_CNT)]; - long led_bitmask[NLONGS(LED_CNT)]; + unsigned long bitmask[NLONGS(EV_CNT)]; + unsigned long key_bitmask[NLONGS(KEY_CNT)]; + unsigned long rel_bitmask[NLONGS(REL_CNT)]; + unsigned long abs_bitmask[NLONGS(ABS_CNT)]; + unsigned long led_bitmask[NLONGS(LED_CNT)]; struct input_absinfo absinfo[ABS_CNT]; /* minor/major number */ -- cgit v1.2.3