string.h, and clean up signal handler-related warnings.
This commit is contained in:
parent
7d9d6e9faf
commit
2e659538b6
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
/*static char sccsid[] = "from: @(#)api_bsd.c 4.2 (Berkeley) 4/26/91";*/
|
/*static char sccsid[] = "from: @(#)api_bsd.c 4.2 (Berkeley) 4/26/91";*/
|
||||||
static char rcsid[] = "$Id: api_bsd.c,v 1.2 1993/08/01 18:06:22 mycroft Exp $";
|
static char rcsid[] = "$Id: api_bsd.c,v 1.3 1995/04/29 05:56:57 cgd Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#if defined(unix)
|
#if defined(unix)
|
||||||
|
@ -43,6 +43,7 @@ static char rcsid[] = "$Id: api_bsd.c,v 1.2 1993/08/01 18:06:22 mycroft Exp $";
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "../ctlr/api.h"
|
#include "../ctlr/api.h"
|
||||||
#include "api_exch.h"
|
#include "api_exch.h"
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
/*static char sccsid[] = "from: @(#)termout.c 4.3 (Berkeley) 4/26/91";*/
|
/*static char sccsid[] = "from: @(#)termout.c 4.3 (Berkeley) 4/26/91";*/
|
||||||
static char rcsid[] = "$Id: termout.c,v 1.3 1994/02/25 03:40:25 cgd Exp $";
|
static char rcsid[] = "$Id: termout.c,v 1.4 1995/04/29 05:57:04 cgd Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#if defined(unix)
|
#if defined(unix)
|
||||||
|
@ -41,6 +41,7 @@ static char rcsid[] = "$Id: termout.c,v 1.3 1994/02/25 03:40:25 cgd Exp $";
|
||||||
#include <sgtty.h>
|
#include <sgtty.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#if defined(ultrix)
|
#if defined(ultrix)
|
||||||
/* Some version of this OS has a bad definition for nonl() */
|
/* Some version of this OS has a bad definition for nonl() */
|
||||||
|
@ -98,6 +99,8 @@ ScreenImage Terminal[MAXSCREENSIZE];
|
||||||
static int tcflag = -1; /* transparent mode command flag */
|
static int tcflag = -1; /* transparent mode command flag */
|
||||||
static int savefd[2]; /* for storing fds during transcom */
|
static int savefd[2]; /* for storing fds during transcom */
|
||||||
extern int tin, tout; /* file descriptors */
|
extern int tin, tout; /* file descriptors */
|
||||||
|
|
||||||
|
static void aborttc();
|
||||||
#endif /* defined(unix) */
|
#endif /* defined(unix) */
|
||||||
|
|
||||||
|
|
||||||
|
@ -653,7 +656,7 @@ InitTerminal()
|
||||||
ClearArray(Terminal);
|
ClearArray(Terminal);
|
||||||
terminalCursorAddress = SetBufferAddress(0,0);
|
terminalCursorAddress = SetBufferAddress(0,0);
|
||||||
#if defined(unix)
|
#if defined(unix)
|
||||||
signal(SIGHUP, abort);
|
signal(SIGHUP, (void (*))abort);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TryToSend = FastScreen;
|
TryToSend = FastScreen;
|
||||||
|
@ -880,7 +883,6 @@ int control; /* To see if we are done */
|
||||||
#if defined(unix)
|
#if defined(unix)
|
||||||
extern char *transcom;
|
extern char *transcom;
|
||||||
int inpipefd[2], outpipefd[2];
|
int inpipefd[2], outpipefd[2];
|
||||||
void aborttc();
|
|
||||||
#endif /* defined(unix) */
|
#endif /* defined(unix) */
|
||||||
|
|
||||||
while (DoTerminalOutput() == 0) {
|
while (DoTerminalOutput() == 0) {
|
||||||
|
@ -921,7 +923,7 @@ int control; /* To see if we are done */
|
||||||
setcommandmode();
|
setcommandmode();
|
||||||
tin = inpipefd[0];
|
tin = inpipefd[0];
|
||||||
tout = outpipefd[1];
|
tout = outpipefd[1];
|
||||||
(void) signal(SIGCHLD, (int (*)())aborttc);
|
(void) signal(SIGCHLD, aborttc);
|
||||||
setconnmode();
|
setconnmode();
|
||||||
tcflag = 1;
|
tcflag = 1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue