diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2014-07-14 00:15:07 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2014-07-15 23:44:50 +0200 |
commit | 60ac2eb8130eb04e452f661c7aee68fe4d64caff (patch) | |
tree | b69c8af1336ccbe57039bd61cecdd61eb87817f9 /tools | |
parent | 85c4500494777a768a10cd4659ef2a6e91cb9258 (diff) |
tools/event-gui: Silence a couple of compiler warnings
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/event-gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/event-gui.c b/tools/event-gui.c index 0aa91298..b4a65066 100644 --- a/tools/event-gui.c +++ b/tools/event-gui.c @@ -257,7 +257,7 @@ handle_event_touch(struct libinput_event *ev, struct window *w) struct touch *touch; double x, y; - if (slot == -1 || slot >= ARRAY_LENGTH(w->touches)) + if (slot == -1 || slot >= (int) ARRAY_LENGTH(w->touches)) return; touch = &w->touches[slot]; @@ -436,7 +436,7 @@ close_restricted(int fd, void *user_data) close(fd); } -const static struct libinput_interface interface = { +static const struct libinput_interface interface = { .open_restricted = open_restricted, .close_restricted = close_restricted, }; |