[PATCH libinput 1/7] test: litest_is_button_event should take an unsigned int

Peter Hutterer peter.hutterer at who-t.net
Mon May 4 22:43:03 PDT 2015


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/litest.c | 2 +-
 test/litest.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/litest.c b/test/litest.c
index 91f2747..c79cca6 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -1329,7 +1329,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;
diff --git a/test/litest.h b/test/litest.h
index f1a720c..5d8ce5b 100644
--- a/test/litest.h
+++ b/test/litest.h
@@ -176,7 +176,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,
-- 
2.3.5



More information about the wayland-devel mailing list