use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / thread / sem_getvalue.c
index 643c096..d9d8307 100644 (file)
@@ -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;