From 686f183021a1a1797daf8787fdc400ea659337ee Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 3 Apr 2000 18:44:48 +0000 Subject: 2000-04-03 Roland McGrath * panic.c: Include instead of . (panic): Use stdarg style. --- serverboot/panic.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/serverboot/panic.c b/serverboot/panic.c index 87428429..4cc657f4 100644 --- a/serverboot/panic.c +++ b/serverboot/panic.c @@ -25,7 +25,7 @@ */ #include -#include +#include #include #include @@ -38,15 +38,13 @@ panic_init(port) } /*VARARGS1*/ -panic(s, va_alist) - char *s; - va_dcl +panic (const char *s, ...) { va_list listp; clearerr (stdout); printf("%s: panic: ", program_invocation_name); - va_start(listp); + va_start(listp, s); vprintf(s, listp); va_end(listp); printf("\n"); -- cgit v1.2.3