diff options
Diffstat (limited to 'src/thread/sem_getvalue.c')
-rw-r--r-- | src/thread/sem_getvalue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/sem_getvalue.c b/src/thread/sem_getvalue.c index 643c0968..d9d83071 100644 --- 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; |