From cb02eca996b8859cb24c5459511676adc650cf8f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 13 Sep 2018 15:16:44 +1000 Subject: [PATCH] tablet: make evdev_reject_device return a bool Because that's how we use it. Signed-off-by: Peter Hutterer --- src/evdev-tablet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index 2fd7ab7..899a3f9 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -2030,7 +2030,7 @@ tablet_init_left_handed(struct evdev_device *device) tablet_change_to_left_handed); } -static int +static bool tablet_reject_device(struct evdev_device *device) { struct libevdev *evdev = device->evdev; @@ -2044,7 +2044,7 @@ tablet_reject_device(struct evdev_device *device) has_size = evdev_device_get_size(device, &w, &h) == 0; if (has_xy && (has_pen || has_btn_stylus) && has_size) - return 0; + return false; evdev_log_bug_libinput(device, "missing tablet capabilities:%s%s%s%s. " @@ -2053,7 +2053,7 @@ tablet_reject_device(struct evdev_device *device) has_pen ? "" : " pen", has_btn_stylus ? "" : " btn-stylus", has_size ? "" : " resolution"); - return -1; + return true; } static int -- 2.7.4