aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-clipboard.c2
-rw-r--r--src/mds-kkbd.c2
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;