From e9c60da89a9c55b81b2dedcf6ee3d1aefb4ff591 Mon Sep 17 00:00:00 2001 From: "Zephaniah E. Hull" Date: Sun, 14 May 2006 11:55:50 +0000 Subject: Tweak credits and references. Change the longs to unsigned longs in the bitfields. Cleanup our includes. Stop pulling in asm/types.h and asm/bitops.h. Conditionally define the stuff that used to come from the above, including our own test_bit, set_bit and clear_bit. Change the longs to unsigned longs in the bitfields. Change the longs to unsigned longs in the bitfields. Use the bitop defines in evdev.h properly. Change the longs to unsigned longs in the bitfields. Change the longs to unsigned longs in the bitfields. Use the bitop defines in evdev.h properly. Change the longs to unsigned longs in the bitfields. Use the bitop defines in evdev.h properly. Add HPPA/HPPA64 entries. (Thanks to Fabio M. Di Nitto ) --- src/evdev.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/evdev.c') diff --git a/src/evdev.c b/src/evdev.c index ab9325e..69deef6 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -61,8 +61,6 @@ #include #include -#include - #include "evdev.h" #include @@ -328,7 +326,7 @@ EvdevNew(evdevDriverPtr driver, evdevDevicePtr device) } static void -EvdevParseBits (char *in, long *out, int len) +EvdevParseBits (char *in, unsigned long *out, int len) { unsigned long v[2]; int n, i, max_bits = len * BITS_PER_LONG; @@ -351,7 +349,7 @@ EvdevParseBits (char *in, long *out, int len) } static void -EvdevParseBitOption (char *opt, long *all, long *not, long *any, int len) +EvdevParseBitOption (char *opt, unsigned long *all, unsigned long *not, unsigned long *any, int len) { char *cur, *next; @@ -395,7 +393,7 @@ EvdevCorePreInit(InputDriverPtr drv, IDevPtr dev, int flags) EvdevParseBitOption (tmp, pEvdev->all_bits.field, \ pEvdev->not_bits.field, \ pEvdev->any_bits.field, \ - sizeof(pEvdev->not_bits.field) / sizeof (long)); \ + sizeof(pEvdev->not_bits.field) / sizeof (unsigned long)); \ free (tmp); \ } bitoption(ev); -- cgit v1.2.3