Skip to content

Commit

Permalink
tablet: make evdev_reject_device return a bool
Browse files Browse the repository at this point in the history
Because that's how we use it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  • Loading branch information
whot committed Sep 27, 2018
1 parent 717b57b commit cb02eca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/evdev-tablet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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. "
Expand All @@ -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
Expand Down

0 comments on commit cb02eca

Please sign in to comment.