Skip to content

Commit

Permalink
2000-04-03 Roland McGrath <[email protected]>
Browse files Browse the repository at this point in the history
	* panic.c: Include <stdarg.h> instead of <varargs.h>.
	(panic): Use stdarg style.
  • Loading branch information
Roland McGrath committed Apr 3, 2000
1 parent 7b41616 commit 686f183
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions serverboot/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include <mach/port.h>
#include <varargs.h>
#include <stdarg.h>
#include <stdio.h>
#include <errno.h>

Expand All @@ -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");
Expand Down

0 comments on commit 686f183

Please sign in to comment.