diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-07-31 17:25:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-07-31 17:25:40 -0400 |
commit | fe5e72ae782238038ba4eaa3e1889e7bd16fecec (patch) | |
tree | d7b72d0a0d91d60f1101052d991450e3c4dbd559 /src/ipc | |
parent | 319b2d02e7799107c0090eb088be48d17df0825c (diff) | |
download | musl-fe5e72ae782238038ba4eaa3e1889e7bd16fecec.tar.gz musl-fe5e72ae782238038ba4eaa3e1889e7bd16fecec.tar.bz2 musl-fe5e72ae782238038ba4eaa3e1889e7bd16fecec.tar.xz musl-fe5e72ae782238038ba4eaa3e1889e7bd16fecec.zip |
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
af55070eae5438476f921d827b7ae49e8141c3fe added SEM_STAT_ANY.
Diffstat (limited to 'src/ipc')
-rw-r--r-- | src/ipc/semctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc/semctl.c b/src/ipc/semctl.c index ce1fb164..e5dd5359 100644 --- a/src/ipc/semctl.c +++ b/src/ipc/semctl.c @@ -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); |