summaryrefslogtreecommitdiff
path: root/src/regress
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress')
-rw-r--r--src/regress/lib/libc/db/dbtest.c22
1 files changed, 4 insertions, 18 deletions
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 @@
1/* $OpenBSD: dbtest.c,v 1.8 2002/02/18 21:40:46 millert Exp $ */ 1/* $OpenBSD: dbtest.c,v 1.9 2002/02/19 19:39:38 millert Exp $ */
2/* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */ 2/* $NetBSD: dbtest.c,v 1.8 1996/05/03 21:57:48 cgd Exp $ */
3 3
4/*- 4/*-
@@ -44,7 +44,7 @@ static char copyright[] =
44#if 0 44#if 0
45static char sccsid[] = "@(#)dbtest.c 8.17 (Berkeley) 9/1/94"; 45static char sccsid[] = "@(#)dbtest.c 8.17 (Berkeley) 9/1/94";
46#else 46#else
47static char rcsid[] = "$OpenBSD: dbtest.c,v 1.8 2002/02/18 21:40:46 millert Exp $"; 47static char rcsid[] = "$OpenBSD: dbtest.c,v 1.9 2002/02/19 19:39:38 millert Exp $";
48#endif 48#endif
49#endif /* not lint */ 49#endif /* not lint */
50 50
@@ -58,6 +58,7 @@ static char rcsid[] = "$OpenBSD: dbtest.c,v 1.8 2002/02/18 21:40:46 millert Exp
58#include <stdio.h> 58#include <stdio.h>
59#include <stdlib.h> 59#include <stdlib.h>
60#include <string.h> 60#include <string.h>
61#include <stdarg.h>
61#include <unistd.h> 62#include <unistd.h>
62 63
63#include <db.h> 64#include <db.h>
@@ -737,27 +738,12 @@ usage()
737 exit(1); 738 exit(1);
738} 739}
739 740
740#ifdef __STDC__
741#include <stdarg.h>
742#else
743#include <varargs.h>
744#endif
745
746void 741void
747#ifdef __STDC__
748dberr(const char *fmt, ...) 742dberr(const char *fmt, ...)
749#else
750dberr(fmt, va_alist)
751 char *fmt;
752 va_dcl
753#endif
754{ 743{
755 va_list ap; 744 va_list ap;
756#ifdef __STDC__ 745
757 va_start(ap, fmt); 746 va_start(ap, fmt);
758#else
759 va_start(ap);
760#endif
761 (void)fprintf(stderr, "dbtest: "); 747 (void)fprintf(stderr, "dbtest: ");
762 (void)vfprintf(stderr, fmt, ap); 748 (void)vfprintf(stderr, fmt, ap);
763 va_end(ap); 749 va_end(ap);