about summary refs log tree commit diff
path: root/src/exit
diff options
context:
space:
mode:
authorJens Gustedt <Jens.Gustedt@inria.fr>2018-01-03 14:17:12 +0100
committerRich Felker <dalias@aerifal.cx>2018-01-09 13:15:27 -0500
commit32482f61da7650ff10741bd5aedd66bbc3ea165b (patch)
tree8f6e3736ffffae67f3411e86f7a56f2ca2080137 /src/exit
parentc4bc0b1a64e1ef1e105df84401805a16e8dbe82a (diff)
downloadmusl-32482f61da7650ff10741bd5aedd66bbc3ea165b.tar.gz
musl-32482f61da7650ff10741bd5aedd66bbc3ea165b.tar.xz
musl-32482f61da7650ff10741bd5aedd66bbc3ea165b.zip
revise the definition of multiple basic locks in the code
In all cases this is just a change from two volatile int to one.
Diffstat (limited to 'src/exit')
-rw-r--r--src/exit/at_quick_exit.c2
-rw-r--r--src/exit/atexit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/exit/at_quick_exit.c b/src/exit/at_quick_exit.c
index ac28dfd9..4079b242 100644
--- a/src/exit/at_quick_exit.c
+++ b/src/exit/at_quick_exit.c
@@ -5,7 +5,7 @@
 
 static void (*funcs[COUNT])(void);
 static int count;
-static volatile int lock[2];
+static volatile int lock[1];
 
 void __funcs_on_quick_exit()
 {
diff --git a/src/exit/atexit.c b/src/exit/atexit.c
index 2b58b8bb..cd3b0a64 100644
--- a/src/exit/atexit.c
+++ b/src/exit/atexit.c
@@ -13,7 +13,7 @@ static struct fl
 } builtin, *head;
 
 static int slot;
-static volatile int lock[2];
+static volatile int lock[1];
 
 void __funcs_on_exit()
 {