diff options
author | Roland McGrath <roland@gnu.org> | 2000-04-03 18:44:48 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-04-03 18:44:48 +0000 |
commit | 72f6177ab99f72566b7583f55bad24def9047c86 (patch) | |
tree | 5255bd8297a7b2c850d0ede077a9d8edbe913401 /serverboot/panic.c | |
parent | 1c5ac2829d68a029ca9b52d63922e51bd3d3db7f (diff) |
2000-04-03 Roland McGrath <roland@baalperazim.frob.com>
* panic.c: Include <stdarg.h> instead of <varargs.h>.
(panic): Use stdarg style.
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"); |