projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
implement 'm' modifier for wide scanf variants
[musl]
/
src
/
thread
/
sem_getvalue.c
diff --git
a/src/thread/sem_getvalue.c
b/src/thread/sem_getvalue.c
index
643c096
..
d9d8307
100644
(file)
--- a/
src/thread/sem_getvalue.c
+++ b/
src/thread/sem_getvalue.c
@@
-1,6
+1,6
@@
#include <semaphore.h>
-int sem_getvalue(sem_t *
sem, int *
valp)
+int sem_getvalue(sem_t *
restrict sem, int *restrict
valp)
{
int val = sem->__val[0];
*valp = val < 0 ? 0 : val;