summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/semctl.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-28 17:03:12 +0000
committeralfred <alfred@FreeBSD.org>2002-05-28 17:03:12 +0000
commit1ee311b26d7122f860fe940db6ce46968981a9a3 (patch)
tree96c195652047b452e756960d6bdfc6786443c564 /lib/libc/gen/semctl.c
parentae40c00e1724fe7d6584623e3a953b6b44fc741f (diff)
downloadFreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.zip
FreeBSD-src-1ee311b26d7122f860fe940db6ce46968981a9a3.tar.gz
Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
Diffstat (limited to 'lib/libc/gen/semctl.c')
-rw-r--r--lib/libc/gen/semctl.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/libc/gen/semctl.c b/lib/libc/gen/semctl.c
index a64e125..a449cac 100644
--- a/lib/libc/gen/semctl.c
+++ b/lib/libc/gen/semctl.c
@@ -4,30 +4,16 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
-#if __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
#include <stdlib.h>
-#if __STDC__
int semctl(int semid, int semnum, int cmd, ...)
-#else
-int semctl(semid, semnum, cmd, va_alist)
- int semid, semnum;
- int cmd;
- va_dcl
-#endif
{
va_list ap;
union semun semun;
union semun *semun_ptr;
-#if __STDC__
+
va_start(ap, cmd);
-#else
- va_start(ap);
-#endif
if (cmd == IPC_SET || cmd == IPC_STAT || cmd == GETALL
|| cmd == SETVAL || cmd == SETALL) {
semun = va_arg(ap, union semun);
OpenPOWER on IntegriCloud