mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 03:35:06 +00:00
fix semctl with SEM_STAT_ANY
due to the variadic signature, semctl needs to be made aware of any
new commands that take arguments. this was overlooked when commit
af55070eae
added SEM_STAT_ANY.
This commit is contained in:
parent
319b2d02e7
commit
fe5e72ae78
@ -20,7 +20,7 @@ int semctl(int id, int num, int cmd, ...)
|
||||
va_list ap;
|
||||
switch (cmd) {
|
||||
case SETVAL: case GETALL: case SETALL: case IPC_STAT: case IPC_SET:
|
||||
case IPC_INFO: case SEM_INFO: case SEM_STAT:
|
||||
case IPC_INFO: case SEM_INFO: case SEM_STAT: case SEM_STAT_ANY:
|
||||
va_start(ap, cmd);
|
||||
arg = va_arg(ap, union semun);
|
||||
va_end(ap);
|
||||
|
Loading…
Reference in New Issue
Block a user