diff options
| author | joerg <joerg@NetBSD.org> | 2011-07-17 20:54:30 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2011-07-17 20:54:30 +0000 |
| commit | 9f2c6cd595b50ba277a217ee608a101d3d113d35 (patch) | |
| tree | 48bfa748b8ec36787ffe9f9263fe65c2e1f9d796 /sys/lib/libsa/printf.c | |
| parent | f5afb0db64b387453210f49892276268e8002bea (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 'sys/lib/libsa/printf.c')
| -rw-r--r-- | sys/lib/libsa/printf.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sys/lib/libsa/printf.c b/sys/lib/libsa/printf.c index 008f5d08a50..ba3dc4f51a5 100644 --- a/sys/lib/libsa/printf.c +++ b/sys/lib/libsa/printf.c @@ -1,4 +1,4 @@ -/* $NetBSD: printf.c,v 1.17 2005/12/11 12:24:46 christos Exp $ */ +/* $NetBSD: printf.c,v 1.18 2011/07/17 20:54:52 joerg Exp $ */ /*- * Copyright (c) 1993 @@ -33,29 +33,16 @@ #include <sys/cdefs.h> #include <sys/types.h> -#ifdef __STDC__ -#include <machine/stdarg.h> -#else -#include <machine/varargs.h> -#endif +#include <sys/stdarg.h> #include "stand.h" void -#ifdef __STDC__ printf(const char *fmt, ...) -#else -printf(fmt, va_alist) - char *fmt; -#endif { va_list ap; -#ifdef __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif vprintf(fmt, ap); va_end(ap); } |
