2008-12-17 03:19:59 +01:00
|
|
|
|
$NetBSD: patch-bl,v 1.2 2008/12/17 02:19:59 christos Exp $
|
2006-05-15 17:33:00 +02:00
|
|
|
|
|
2008-12-17 03:19:59 +01:00
|
|
|
|
--- tcl/panic.c.orig 1995-02-24 16:19:49.000000000 -0500
|
|
|
|
|
+++ tcl/panic.c 2008-12-16 20:18:00.000000000 -0500
|
|
|
|
|
@@ -19,7 +19,7 @@
|
2006-05-15 17:33:00 +02:00
|
|
|
|
|
2008-12-17 03:19:59 +01:00
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
-#include <varargs.h>
|
|
|
|
|
+#include <stdarg.h>
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
*----------------------------------------------------------------------
|
|
|
|
|
@@ -39,18 +39,17 @@
|
2006-05-15 17:33:00 +02:00
|
|
|
|
|
2008-12-17 03:19:59 +01:00
|
|
|
|
#ifndef lint
|
2006-05-15 17:33:00 +02:00
|
|
|
|
void
|
2008-12-17 03:19:59 +01:00
|
|
|
|
-panic(va_alist)
|
|
|
|
|
- va_dcl /* char *format, then any number of additional
|
|
|
|
|
+panic(char *format, ...)
|
|
|
|
|
+ /* char *format, then any number of additional
|
|
|
|
|
* values to be printed under the control of
|
|
|
|
|
* format. This is all just the same as you'd
|
|
|
|
|
* pass to printf. */
|
|
|
|
|
{
|
|
|
|
|
- char *format;
|
|
|
|
|
va_list args;
|
2006-05-15 17:33:00 +02:00
|
|
|
|
|
2008-12-17 03:19:59 +01:00
|
|
|
|
- va_start(args);
|
|
|
|
|
- format = va_arg(args, char *);
|
|
|
|
|
+ va_start(args, format);
|
|
|
|
|
(void) vfprintf(stderr, format, args);
|
|
|
|
|
+ va_end(args);
|
|
|
|
|
(void) fflush(stderr);
|
|
|
|
|
abort();
|
|
|
|
|
}
|