diff options
author | 2002-02-19 19:39:35 +0000 | |
---|---|---|
committer | 2002-02-19 19:39:35 +0000 | |
commit | e7beb4a7d58a6a0955c07ef9465f5caa3383f928 (patch) | |
tree | a90c75bb4a04ab98987b06850cbdffd6c1903e17 /lib/libc/gen/warnx.c | |
parent | Every command should have a manual page. (diff) | |
download | wireguard-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/gen/warnx.c')
-rw-r--r-- | lib/libc/gen/warnx.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/libc/gen/warnx.c b/lib/libc/gen/warnx.c index 02367b0ec88..f7255262716 100644 --- a/lib/libc/gen/warnx.c +++ b/lib/libc/gen/warnx.c @@ -32,34 +32,18 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: warnx.c,v 1.2 1996/08/19 08:27:50 tholo Exp $"; +static char rcsid[] = "$OpenBSD: warnx.c,v 1.3 2002/02/19 19:39:36 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <err.h> - -#ifdef __STDC__ #include <stdarg.h> -#else -#include <varargs.h> -#endif void -#ifdef __STDC__ _warnx(const char *fmt, ...) -#else -_warnx(va_alist) - va_dcl -#endif { va_list ap; -#ifdef __STDC__ - va_start(ap, fmt); -#else - const char *fmt; - va_start(ap); - fmt = va_arg(ap, const char *); -#endif + va_start(ap, fmt); _vwarnx(fmt, ap); va_end(ap); } |