summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorSimon Rettberg2018-08-08 12:00:17 +0200
committerSimon Rettberg2018-08-08 12:00:17 +0200
commita823d7ec0ad80d9a36e343f538dbad3c39ea5a82 (patch)
tree9d19492d42a7d2acde84a38417281220dd43d050 /src/shared
parent[SERVER] Add missing file mode to open() call (diff)
downloaddnbd3-a823d7ec0ad80d9a36e343f538dbad3c39ea5a82.tar.gz
dnbd3-a823d7ec0ad80d9a36e343f538dbad3c39ea5a82.tar.xz
dnbd3-a823d7ec0ad80d9a36e343f538dbad3c39ea5a82.zip
[SHARED] Use atomic for logger mask
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/log.c b/src/shared/log.c
index 8df19c1..055acb4 100644
--- a/src/shared/log.c
+++ b/src/shared/log.c
@@ -31,8 +31,8 @@
#define LINE_LEN (800)
static pthread_mutex_t logLock = PTHREAD_MUTEX_INITIALIZER;
-static logmask_t maskFile = 31;
-static logmask_t maskCon = 15;
+static _Atomic logmask_t maskFile = 31;
+static _Atomic logmask_t maskCon = 15;
static char *logFile = NULL;
static int logFd = -1;