summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-09-11 02:11:12 +0200
committerGravatar Nikias Bassen2021-09-11 02:11:12 +0200
commit68f1d4a136fca04665a209f2a215b27bee377003 (patch)
tree7a43853fd0c29dc9235f4cbe2811c64b82228cc2 /src/plist.c
parentb6e60a33d3e68ecbcb36708cdc68e18a538ba26a (diff)
downloadlibplist-68f1d4a136fca04665a209f2a215b27bee377003.tar.gz
libplist-68f1d4a136fca04665a209f2a215b27bee377003.tar.bz2
windows: Make thread_once static and remove const qualifiers from thread_once_t globals
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plist.c b/src/plist.c
index f03e125..454d08c 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -69,10 +69,10 @@ typedef volatile struct {
int state;
} thread_once_t;
-static const thread_once_t init_once = {0, 0};
-static const thread_once_t deinit_once = {0, 0};
+static thread_once_t init_once = {0, 0};
+static thread_once_t deinit_once = {0, 0};
-void thread_once(thread_once_t *once_control, void (*init_routine)(void))
+static void thread_once(thread_once_t *once_control, void (*init_routine)(void))
{
while (InterlockedExchange(&(once_control->lock), 1) != 0) {
Sleep(1);