From 0be1f7d80eff8e3e86b037958be3ab5217ce9b59 Mon Sep 17 00:00:00 2001 From: millert <> Date: Tue, 19 Feb 2002 19:39:38 +0000 Subject: We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. --- src/regress/lib/libc/db/dbtest.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'src/regress/lib/libc/db/dbtest.c') diff --git a/src/regress/lib/libc/db/dbtest.c b/src/regress/lib/libc/db/dbtest.c index 53451c5438..a48e19c452 100644 --- a/src/regress/lib/libc/db/dbtest.c +++ b/src/regress/lib/libc/db/dbtest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dbtest.c,v 1.8 2002/02/18 21:40:46 millert Exp $ */ +/* $OpenBSD: dbtest.c,v 1.9 2002/02/19 19:39:38 millert Exp $ */ /* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)dbtest.c 8.17 (Berkeley) 9/1/94"; #else -static char rcsid[] = "$OpenBSD: dbtest.c,v 1.8 2002/02/18 21:40:46 millert Exp $"; +static char rcsid[] = "$OpenBSD: dbtest.c,v 1.9 2002/02/19 19:39:38 millert Exp $"; #endif #endif /* not lint */ @@ -58,6 +58,7 @@ static char rcsid[] = "$OpenBSD: dbtest.c,v 1.8 2002/02/18 21:40:46 millert Exp #include #include #include +#include #include #include @@ -737,27 +738,12 @@ usage() exit(1); } -#ifdef __STDC__ -#include -#else -#include -#endif - void -#ifdef __STDC__ dberr(const char *fmt, ...) -#else -dberr(fmt, va_alist) - char *fmt; - va_dcl -#endif { va_list ap; -#ifdef __STDC__ + va_start(ap, fmt); -#else - va_start(ap); -#endif (void)fprintf(stderr, "dbtest: "); (void)vfprintf(stderr, fmt, ap); va_end(ap); -- cgit v1.2.3-55-g6feb