summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-04-03 18:44:48 +0000
committerRoland McGrath <roland@gnu.org>2000-04-03 18:44:48 +0000
commit686f183021a1a1797daf8787fdc400ea659337ee (patch)
treef8b20c11b483b357c7d8c418f700683853b0b2b2
parent7b4161648941ab8ea76f2a5d3ab34e37330e35a4 (diff)
2000-04-03 Roland McGrath <roland@baalperazim.frob.com>
* panic.c: Include <stdarg.h> instead of <varargs.h>. (panic): Use stdarg style.
-rw-r--r--serverboot/panic.c8
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");