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/panic.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/panic.c')
| -rw-r--r-- | sys/lib/libsa/panic.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/sys/lib/libsa/panic.c b/sys/lib/libsa/panic.c index f2f3fa67d1a..c91adfcc0e1 100644 --- a/sys/lib/libsa/panic.c +++ b/sys/lib/libsa/panic.c @@ -1,4 +1,4 @@ -/* $NetBSD: panic.c,v 1.6 2007/11/24 13:20:56 isaki Exp $ */ +/* $NetBSD: panic.c,v 1.7 2011/07/17 20:54:52 joerg Exp $ */ /*- * Copyright (c) 1993 John Brezak @@ -27,21 +27,12 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ -#ifdef __STDC__ -#include <machine/stdarg.h> -#else -#include <machine/varargs.h> -#endif +#include <sys/stdarg.h> #include "stand.h" __dead void -#ifdef __STDC__ panic(const char *fmt, ...) -#else -panic(fmt /*, va_alist */) - char *fmt; -#endif { va_list ap; #ifndef LIBSA_NO_FS_CLOSE @@ -53,11 +44,7 @@ panic(fmt /*, va_alist */) } #endif -#ifdef __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif vprintf(fmt, ap); printf("\n"); va_end(ap); |
