diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-09-08 14:27:18 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-09-08 14:27:18 +0200 |
commit | 470c46ebc37ccf63f7301e6004c4c05c3b81f2a3 (patch) | |
tree | 13497b6d5c30f535f4dcd99c42c896c229662584 /src | |
parent | take care of some danger (diff) | |
download | mds-470c46ebc37ccf63f7301e6004c4c05c3b81f2a3.tar.gz mds-470c46ebc37ccf63f7301e6004c4c05c3b81f2a3.tar.bz2 mds-470c46ebc37ccf63f7301e6004c4c05c3b81f2a3.tar.xz |
derp, danger is volatile and atomic
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-clipboard.c | 2 | ||||
-rw-r--r-- | src/mds-kkbd.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; |