summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-02-19 19:39:35 +0000
committermillert <millert@openbsd.org>2002-02-19 19:39:35 +0000
commite7beb4a7d58a6a0955c07ef9465f5caa3383f928 (patch)
treea90c75bb4a04ab98987b06850cbdffd6c1903e17 /lib/libc/sys
parentEvery command should have a manual page. (diff)
downloadwireguard-openbsd-e7beb4a7d58a6a0955c07ef9465f5caa3383f928.tar.xz
wireguard-openbsd-e7beb4a7d58a6a0955c07ef9465f5caa3383f928.zip
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/Lint_syscall.c12
-rw-r--r--lib/libc/sys/semctl.c18
2 files changed, 3 insertions, 27 deletions
diff --git a/lib/libc/sys/Lint_syscall.c b/lib/libc/sys/Lint_syscall.c
index d1afedad86c..367a7aac179 100644
--- a/lib/libc/sys/Lint_syscall.c
+++ b/lib/libc/sys/Lint_syscall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: Lint_syscall.c,v 1.1 1998/02/08 22:45:14 tholo Exp $ */
+/* $OpenBSD: Lint_syscall.c,v 1.2 2002/02/19 19:39:37 millert Exp $ */
/* $NetBSD: Lint_syscall.c,v 1.1 1997/11/06 00:53:22 cgd Exp $ */
/*
@@ -7,21 +7,11 @@
*/
#include <unistd.h>
-#ifdef __STDC__
#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
/*ARGSUSED*/
int
-#ifdef __STDC__
syscall(int arg1, ...)
-#else
-syscall(arg1, va_alist)
- int arg1;
- va_dcl
-#endif
{
return (0);
}
diff --git a/lib/libc/sys/semctl.c b/lib/libc/sys/semctl.c
index 7a933897d66..64bf75114ab 100644
--- a/lib/libc/sys/semctl.c
+++ b/lib/libc/sys/semctl.c
@@ -30,36 +30,22 @@
*/
#if defined(SYSLIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: semctl.c,v 1.5 1998/06/10 08:46:22 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: semctl.c,v 1.6 2002/02/19 19:39:37 millert Exp $";
#endif /* SYSLIBC_SCCS and not lint */
#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 = NULL;
-#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);