summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/vprintf.c
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2011-07-17 20:54:30 +0000
committerjoerg <joerg@NetBSD.org>2011-07-17 20:54:30 +0000
commit9f2c6cd595b50ba277a217ee608a101d3d113d35 (patch)
tree48bfa748b8ec36787ffe9f9263fe65c2e1f9d796 /lib/libc/stdio/vprintf.c
parentf5afb0db64b387453210f49892276268e8002bea (diff)
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting to the GCC interface. lint still has a special fallback. Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and derive va_list as required by standards.
Diffstat (limited to 'lib/libc/stdio/vprintf.c')
-rw-r--r--lib/libc/stdio/vprintf.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/stdio/vprintf.c b/lib/libc/stdio/vprintf.c
index 711884035b6..a5c940aff09 100644
--- a/lib/libc/stdio/vprintf.c
+++ b/lib/libc/stdio/vprintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vprintf.c,v 1.10 2003/08/07 16:43:34 agc Exp $ */
+/* $NetBSD: vprintf.c,v 1.11 2011/07/17 20:54:34 joerg Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,18 +37,17 @@
#if 0
static char sccsid[] = "@(#)vprintf.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: vprintf.c,v 1.10 2003/08/07 16:43:34 agc Exp $");
+__RCSID("$NetBSD: vprintf.c,v 1.11 2011/07/17 20:54:34 joerg Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include <assert.h>
#include <errno.h>
+#include <stdarg.h>
#include <stdio.h>
int
-vprintf(fmt, ap)
- char const *fmt;
- _BSD_VA_LIST_ ap;
+vprintf(const char *fmt, va_list ap)
{
_DIAGASSERT(fmt != NULL);