pkgsrc/chat/icb/patches/patch-bl
christos 460bd4190f make this work on 64 bit platforms:
- fix warnings for missing prototypes
- use termios instead of sgtty (why doesn't this work on amd64?)
2008-12-17 02:19:59 +00:00

36 lines
918 B
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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