diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2014-07-15 21:53:26 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2014-07-15 23:44:50 +0200 |
commit | 85c4500494777a768a10cd4659ef2a6e91cb9258 (patch) | |
tree | 386bf2e6b21a1ebd82dbed521ceb0417632842e7 /tools | |
parent | a474a7648d0420dfee80bb9cf020e71cbd592da3 (diff) | |
download | libinput-85c4500494777a768a10cd4659ef2a6e91cb9258.tar.gz |
event-debug: Silence compiler warnings
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/event-debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/event-debug.c b/tools/event-debug.c index 3eade366..fb22f3bd 100644 --- a/tools/event-debug.c +++ b/tools/event-debug.c @@ -199,7 +199,7 @@ static void print_event_header(struct libinput_event *ev) { struct libinput_device *dev = libinput_event_get_device(ev); - const char *type; + const char *type = NULL; switch(libinput_event_get_type(ev)) { case LIBINPUT_EVENT_NONE: @@ -428,7 +428,7 @@ handle_and_print_events(struct libinput *li) return rc; } -void +static void mainloop(struct libinput *li) { struct pollfd fds[2]; |