mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 02:20:30 +01:00
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>
This commit is contained in:
parent
e4ce6dfb0a
commit
6ed8c64e92
1 changed files with 1 additions and 1 deletions
|
|
@ -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__); })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue