From 7c100551756ad5c7a00cbbe687b460c3b4811d33 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 30 Dec 2000 16:27:33 +0000 Subject: [PATCH] Be consistent with argument types vs. prototype; use _BSD_VA_LIST_ as the argument, instead of va_list. Might not make a difference on most ports, depending on toolchain/MD typedefs. Does make a difference on sparc64, where it wouldn't compile otherwise. --- lib/libc/gen/syslog.c | 6 +++--- lib/libc/gen/verr.c | 6 +++--- lib/libc/gen/verrx.c | 6 +++--- lib/libc/gen/vwarn.c | 6 +++--- lib/libc/gen/vwarnx.c | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c index ab1f0163aeef..a2f08056eaeb 100644 --- a/lib/libc/gen/syslog.c +++ b/lib/libc/gen/syslog.c @@ -1,4 +1,4 @@ -/* $NetBSD: syslog.c,v 1.24 2000/01/22 22:19:12 mycroft Exp $ */ +/* $NetBSD: syslog.c,v 1.25 2000/12/30 16:27:33 martin Exp $ */ /* * Copyright (c) 1983, 1988, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)syslog.c 8.5 (Berkeley) 4/29/95"; #else -__RCSID("$NetBSD: syslog.c,v 1.24 2000/01/22 22:19:12 mycroft Exp $"); +__RCSID("$NetBSD: syslog.c,v 1.25 2000/12/30 16:27:33 martin Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -123,7 +123,7 @@ void vsyslog(pri, fmt, ap) int pri; const char *fmt; - va_list ap; + _BSD_VA_LIST_ ap; { size_t cnt; char ch, *p, *t; diff --git a/lib/libc/gen/verr.c b/lib/libc/gen/verr.c index 23b223553456..1939e6c67357 100644 --- a/lib/libc/gen/verr.c +++ b/lib/libc/gen/verr.c @@ -1,4 +1,4 @@ -/* $NetBSD: verr.c,v 1.4 1999/08/17 03:47:40 mycroft Exp $ */ +/* $NetBSD: verr.c,v 1.5 2000/12/30 16:27:33 martin Exp $ */ /*- * Copyright (c) 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: verr.c,v 1.4 1999/08/17 03:47:40 mycroft Exp $"); +__RCSID("$NetBSD: verr.c,v 1.5 2000/12/30 16:27:33 martin Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -67,7 +67,7 @@ __dead void _verr(eval, fmt, ap) int eval; const char *fmt; - va_list ap; + _BSD_VA_LIST_ ap; { int sverrno; diff --git a/lib/libc/gen/verrx.c b/lib/libc/gen/verrx.c index 6c55538a73bd..fa8deb6e17da 100644 --- a/lib/libc/gen/verrx.c +++ b/lib/libc/gen/verrx.c @@ -1,4 +1,4 @@ -/* $NetBSD: verrx.c,v 1.4 1999/08/17 03:47:40 mycroft Exp $ */ +/* $NetBSD: verrx.c,v 1.5 2000/12/30 16:27:33 martin Exp $ */ /*- * Copyright (c) 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: verrx.c,v 1.4 1999/08/17 03:47:40 mycroft Exp $"); +__RCSID("$NetBSD: verrx.c,v 1.5 2000/12/30 16:27:33 martin Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -65,7 +65,7 @@ __dead void _verrx(eval, fmt, ap) int eval; const char *fmt; - va_list ap; + _BSD_VA_LIST_ ap; { (void)fprintf(stderr, "%s: ", __progname); if (fmt != NULL) diff --git a/lib/libc/gen/vwarn.c b/lib/libc/gen/vwarn.c index af0a57d0226a..2ef2cd501939 100644 --- a/lib/libc/gen/vwarn.c +++ b/lib/libc/gen/vwarn.c @@ -1,4 +1,4 @@ -/* $NetBSD: vwarn.c,v 1.4 1999/08/17 03:47:40 mycroft Exp $ */ +/* $NetBSD: vwarn.c,v 1.5 2000/12/30 16:27:33 martin Exp $ */ /*- * Copyright (c) 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: vwarn.c,v 1.4 1999/08/17 03:47:40 mycroft Exp $"); +__RCSID("$NetBSD: vwarn.c,v 1.5 2000/12/30 16:27:33 martin Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -65,7 +65,7 @@ __weak_alias(vwarn, _vwarn) void _vwarn(fmt, ap) const char *fmt; - va_list ap; + _BSD_VA_LIST_ ap; { int sverrno; diff --git a/lib/libc/gen/vwarnx.c b/lib/libc/gen/vwarnx.c index 6236843ff5fb..664a3dfe51e5 100644 --- a/lib/libc/gen/vwarnx.c +++ b/lib/libc/gen/vwarnx.c @@ -1,4 +1,4 @@ -/* $NetBSD: vwarnx.c,v 1.4 1999/08/17 03:47:40 mycroft Exp $ */ +/* $NetBSD: vwarnx.c,v 1.5 2000/12/30 16:27:33 martin Exp $ */ /*- * Copyright (c) 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)err.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: vwarnx.c,v 1.4 1999/08/17 03:47:40 mycroft Exp $"); +__RCSID("$NetBSD: vwarnx.c,v 1.5 2000/12/30 16:27:33 martin Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -63,7 +63,7 @@ __weak_alias(vwarnx, _vwarnx) void _vwarnx(fmt, ap) const char *fmt; - va_list ap; + _BSD_VA_LIST_ ap; { (void)fprintf(stderr, "%s: ", __progname); if (fmt != NULL)