summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Seiderer <ps.report@gmx.net>2018-03-13 21:28:22 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2018-03-15 08:06:54 +1000
commit6ed8c64e920c9cb13c288e6ff4e2124201bdaf21 (patch)
tree0df77a2c05e49e15db3fae6d4cde749802e284a2 /tools
parente4ce6dfb0aa1d2e601c9c912560436b0aacf9fdd (diff)
tools: libinput-debug-events stop variable needs volatile
The stop variable set in the signal handler needs volatile (and use the defined sig_atomic_t instead of unsigned int). Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/libinput-debug-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libinput-debug-events.c b/tools/libinput-debug-events.c
index 33f51d0e..32782c21 100644
--- a/tools/libinput-debug-events.c
+++ b/tools/libinput-debug-events.c
@@ -48,7 +48,7 @@ static const uint32_t screen_width = 100;
static const uint32_t screen_height = 100;
static struct tools_options options;
static bool show_keycodes;
-static unsigned int stop = 0;
+static volatile sig_atomic_t stop = 0;
static bool be_quiet = false;
#define printq(...) ({ if (!be_quiet) printf(__VA_ARGS__); })