diff options
Diffstat (limited to 'serverboot/panic.c')
-rw-r--r-- | serverboot/panic.c | 8 |
1 files 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 <mach/port.h> -#include <varargs.h> +#include <stdarg.h> #include <stdio.h> #include <errno.h> @@ -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"); |