9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d45fe9f17da338c31b7a5a63f8285eaa4243d37e
parent e4583ea4e14bf89e46cf8a43bc9f4db84e1111e0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 18 Oct 2020 09:27:34 +0200

os9: Fix mutex in alloc()

Mutex has to be static otherwise it is not very practical
to have them and the initial state is not known.

Change-Id: I6dee85120d38f81bd2d33432c154215451bff234

Diffstat:
Msrc/os9/alloc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/os9/alloc.c b/src/os9/alloc.c @@ -36,7 +36,7 @@ alloc(size_t size) size_t n; union bucket *bp; static union bucket *base, *heap; - mutex_t m; + static mutex_t m; if (size == 0) { lockalloc = 1;