pkgsrc/chat/icb/patches/patch-bl

37 lines
918 B
Text
Raw Normal View History

$NetBSD: patch-bl,v 1.2 2008/12/17 02:19:59 christos Exp $
2006-05-15 17:33:00 +02: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
#include <stdio.h>
#include <stdlib.h>
-#include <varargs.h>
+#include <stdarg.h>
/*
*----------------------------------------------------------------------
@@ -39,18 +39,17 @@
2006-05-15 17:33:00 +02:00
#ifndef lint
2006-05-15 17:33:00 +02:00
void
-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
- va_start(args);
- format = va_arg(args, char *);
+ va_start(args, format);
(void) vfprintf(stderr, format, args);
+ va_end(args);
(void) fflush(stderr);
abort();
}