test: litest_is_button_event should take an unsigned int
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 3 May 2015 23:30:51 +0000 (09:30 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 7 May 2015 04:40:59 +0000 (14:40 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
test/litest.c
test/litest.h

index 21ddca2..e39af5f 100644 (file)
@@ -1457,7 +1457,7 @@ litest_create_uinput_device(const char *name, struct input_id *id, ...)
 
 struct libinput_event_pointer*
 litest_is_button_event(struct libinput_event *event,
-                      int button,
+                      unsigned int button,
                       enum libinput_button_state state)
 {
        struct libinput_event_pointer *ptrev;
index 23a8e87..83859c2 100644 (file)
@@ -198,7 +198,7 @@ void litest_drain_events(struct libinput *li);
 void litest_assert_empty_queue(struct libinput *li);
 struct libinput_event_pointer * litest_is_button_event(
                       struct libinput_event *event,
-                      int button,
+                      unsigned int button,
                       enum libinput_button_state state);
 void litest_assert_button_event(struct libinput *li,
                                unsigned int button,