diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-02-19 19:39:42 +0000 |
commit | 3923126b85f9e8a77cab9a41b5a62125acd5b4cd (patch) | |
tree | 1a8b19c5db03f8c989fc8228811837b182feb7a3 /lib/libc/sys | |
parent | cc03bdb70090357d2393b6ec82e3cde4d5ce5edd (diff) |
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.c | 12 | ||||
-rw-r--r-- | lib/libc/sys/semctl.c | 18 |
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); |