From 3923126b85f9e8a77cab9a41b5a62125acd5b4cd Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 19 Feb 2002 19:39:42 +0000 Subject: We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. --- lib/libc/gen/warn.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'lib/libc/gen/warn.c') diff --git a/lib/libc/gen/warn.c b/lib/libc/gen/warn.c index 422d94b2059..cfb4e66c363 100644 --- a/lib/libc/gen/warn.c +++ b/lib/libc/gen/warn.c @@ -32,34 +32,18 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: warn.c,v 1.3 1997/07/25 20:30:06 mickey Exp $"; +static char rcsid[] = "$OpenBSD: warn.c,v 1.4 2002/02/19 19:39:36 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include - -#ifdef __STDC__ #include -#else -#include -#endif void -#ifdef __STDC__ _warn(const char *fmt, ...) -#else -_warn(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); _vwarn(fmt, ap); va_end(ap); } -- cgit v1.2.3