const struct input_absinfo *override)
{
struct input_absinfo *abs;
- int nelem, i;
+ unsigned int nelem, i;
size_t sz = ABS_MAX + 1;
if (!orig)
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)
{
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);
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;
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;
}
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;