From: deraadt Date: Thu, 14 Dec 1995 13:57:47 +0000 (+0000) Subject: from netbsd: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b496888ebbd309a3c8d50974b1590fe3ea97b3f0;p=openbsd from netbsd: delete bogus declaration of abort() and include stdlib.h, so that this compiles w/o warning. --- diff --git a/usr.bin/tn3270/sys_curses/termout.c b/usr.bin/tn3270/sys_curses/termout.c index 0f69c8d3caf..cecebf8c449 100644 --- a/usr.bin/tn3270/sys_curses/termout.c +++ b/usr.bin/tn3270/sys_curses/termout.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)termout.c 4.3 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$Id: termout.c,v 1.2 1995/11/13 04:59:23 deraadt Exp $"; +static char rcsid[] = "$Id: termout.c,v 1.3 1995/12/14 13:57:47 deraadt Exp $"; #endif /* not lint */ #if defined(unix) @@ -41,6 +41,7 @@ static char rcsid[] = "$Id: termout.c,v 1.2 1995/11/13 04:59:23 deraadt Exp $"; #include #endif #include +#include #include #include #if defined(ultrix) @@ -642,7 +643,6 @@ InitTerminal() #if defined(unix) char KSEbuffer[2050]; char *lotsofspace = KSEbuffer; - extern void abort(); extern char *tgetstr(); #endif /* defined(unix) */ @@ -655,7 +655,7 @@ InitTerminal() ClearArray(Terminal); terminalCursorAddress = SetBufferAddress(0,0); #if defined(unix) - signal(SIGHUP, abort); + signal(SIGHUP, (void (*))abort); #endif TryToSend = FastScreen;