mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add restrict type-qualifier to sem_getvalue().
This commit is contained in:
parent
696fbe6b05
commit
ddb4fb5b44
4 changed files with 4 additions and 4 deletions
|
|
@ -333,7 +333,7 @@ sem_post(sem_t *sem)
|
|||
}
|
||||
|
||||
int
|
||||
sem_getvalue(sem_t *sem, int *sval)
|
||||
sem_getvalue(sem_t * __restrict sem, int * __restrict sval)
|
||||
{
|
||||
int retval;
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
.Sh SYNOPSIS
|
||||
.In semaphore.h
|
||||
.Ft int
|
||||
.Fn sem_getvalue "sem_t *sem" "int *sval"
|
||||
.Fn sem_getvalue "sem_t * restrict sem" "int * restrict sval"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn sem_getvalue
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ sem_post(sem_t *sem)
|
|||
}
|
||||
|
||||
int
|
||||
sem_getvalue(sem_t *sem, int *sval)
|
||||
sem_getvalue(sem_t * __restrict sem, int * __restrict sval)
|
||||
{
|
||||
int retval;
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
.Sh SYNOPSIS
|
||||
.In semaphore.h
|
||||
.Ft int
|
||||
.Fn sem_getvalue "sem_t *sem" "int *sval"
|
||||
.Fn sem_getvalue "sem_t * restrict sem" "int * restrict sval"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn sem_getvalue
|
||||
|
|
|
|||
Loading…
Reference in a new issue