test: fix compiler warnings for comparison int vs unsigned int

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2014-07-03 11:00:54 +10:00
parent 124aa9b0f8
commit 5cecefeea0
4 changed files with 6 additions and 6 deletions

View file

@ -357,7 +357,7 @@ merge_absinfo(const struct input_absinfo *orig,
const struct input_absinfo *override)
{
struct input_absinfo *abs;
int nelem, i;
unsigned int nelem, i;
size_t sz = ABS_MAX + 1;
if (!orig)
@ -391,7 +391,7 @@ static int*
merge_events(const int *orig, const int *override)
{
int *events;
int nelem, i;
unsigned int nelem, i;
size_t sz = KEY_MAX * 3;
if (!orig)

View file

@ -394,7 +394,7 @@ START_TEST(device_ids)
{
struct litest_device *dev = litest_current_device();
const char *name;
int pid, vid;
unsigned int pid, vid;
name = libevdev_get_name(dev->evdev);
pid = libevdev_get_id_product(dev->evdev);

View file

@ -102,7 +102,7 @@ START_TEST(pointer_motion_relative)
END_TEST
static void
test_button_event(struct litest_device *dev, int button, int state)
test_button_event(struct litest_device *dev, unsigned int button, int state)
{
struct libinput *li = dev->libinput;
struct libinput_event *event;

View file

@ -90,7 +90,7 @@ START_TEST(touchpad_2fg_no_motion)
END_TEST
static void
assert_button_event(struct libinput *li, int button,
assert_button_event(struct libinput *li, unsigned int button,
enum libinput_button_state state)
{
struct libinput_event *event;
@ -1127,7 +1127,7 @@ test_2fg_scroll(struct litest_device *dev, int dx, int dy, int sleep)
}
static void
check_2fg_scroll(struct litest_device *dev, int axis, int dir)
check_2fg_scroll(struct litest_device *dev, unsigned int axis, int dir)
{
struct libinput *li = dev->libinput;
struct libinput_event *event, *next_event;