From 470c46ebc37ccf63f7301e6004c4c05c3b81f2a3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 8 Sep 2014 14:27:18 +0200 Subject: derp, danger is volatile and atomic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-clipboard.c | 2 +- src/mds-kkbd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mds-clipboard.c b/src/mds-clipboard.c index a726c52..8cd9bea 100644 --- a/src/mds-clipboard.c +++ b/src/mds-clipboard.c @@ -85,7 +85,7 @@ static clipitem_t* clipboard[CLIPBOARD_LEVELS]; /** * Whether the server should free memory as soon as possible */ -static int danger = 0; +static volatile sig_atomic_t danger = 0; diff --git a/src/mds-kkbd.c b/src/mds-kkbd.c index 2e1986f..4deb6f8 100644 --- a/src/mds-kkbd.c +++ b/src/mds-kkbd.c @@ -190,7 +190,7 @@ static pthread_mutex_t mapping_mutex; /** * Whether the server should free memory as soon as possible */ -static int danger = 0; +static volatile sig_atomic_t danger = 0; -- cgit v1.2.3-70-g09d2