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.
This commit is contained in:
parent
69939b09cd
commit
7c10055175
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue