1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
$NetBSD: patch-ae,v 1.3 2013/02/26 10:20:17 joerg Exp $
--- main.c.orig 2002-01-09 00:41:11.000000000 +0000
+++ main.c
@@ -583,6 +583,8 @@ static int tslot;
#endif /* USE_SYSV_UTMP */
static jmp_buf env;
+static void spawn (void);
+
char *ProgramName;
Boolean sunFunctionKeys;
@@ -806,7 +808,7 @@ static char *message[] = {
NULL};
#ifndef USE_TERMIOS
-static remove_termcap_entry ();
+static void remove_termcap_entry (char *, const char *);
#endif
static int abbrev (tst, cmp)
@@ -1527,7 +1529,8 @@ char **argv;
if (ioctl (pty, FIONBIO, (char *)&mode) == -1) SysError (ERROR_FIONBIO);
#endif /* USE_SYSV_TERMIO */
-#if defined(linux)||defined(SVR4)||(defined(hpux)&&OSMAJORVERSION>=10)
+
+#ifndef VMS
pty_mask = pty;
X_mask = Xsocket;
FD_ZERO(&Select_mask);
@@ -1854,7 +1857,7 @@ void first_map_occurred ()
#endif /* USE_HANDSHAKE else !USE_HANDSHAKE */
-spawn ()
+static void spawn (void)
/*
* Inits pty and tty and forks a login process.
* Does not close fd Xsocket.
@@ -3332,7 +3335,6 @@ static SIGNAL_T reapchild (n)
consolepr(fmt,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9)
char *fmt;
{
- extern int errno;
extern char *SysErrorMsg();
int oerrno;
int f;
@@ -3357,9 +3359,7 @@ char *fmt;
#ifndef USE_TERMIOS
-static remove_termcap_entry (buf, str)
- char *buf;
- char *str;
+static void remove_termcap_entry (char *buf, const char *str)
{
register char *strinbuf;
|