1 diff -ru netkit-telnet-0.17/configure netkit-telnet-0.17-new/configure
2 --- netkit-telnet-0.17/configure 2000-07-29 20:00:29.000000000 +0200
3 +++ netkit-telnet-0.17-new/configure 2003-11-08 23:43:58.000000000 +0100
4 @@ -67,7 +67,7 @@
5
6 ##################################################
7
8 -WARNINGS='-Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline '
9 +WARNINGS='-Wall -W -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes'
10
11 cat << EOF > __conftest.c
12 int main() { int class=0; return class; }
13 diff -ru netkit-telnet-0.17/telnet/commands.cc netkit-telnet-0.17-new/telnet/commands.cc
14 --- netkit-telnet-0.17/telnet/commands.cc 2000-07-23 06:16:24.000000000 +0200
15 +++ netkit-telnet-0.17-new/telnet/commands.cc 2003-11-08 23:47:23.000000000 +0100
16 @@ -88,7 +88,7 @@
17
18 #ifndef MAXHOSTNAMELEN
19 #define MAXHOSTNAMELEN 64
20 -#endif MAXHOSTNAMELEN
21 +#endif /* MAXHOSTNAMELEN */
22
23 #if defined(HAS_IPPROTO_IP) && defined(IP_TOS)
24 int tos = -1;
25 diff -ru netkit-telnet-0.17/telnet/proto.h netkit-telnet-0.17-new/telnet/proto.h
26 --- netkit-telnet-0.17/telnet/proto.h 1997-05-19 11:32:36.000000000 +0200
27 +++ netkit-telnet-0.17-new/telnet/proto.h 2003-11-08 23:48:39.000000000 +0100
28 @@ -1,3 +1,6 @@
29 +#include <string.h>
30 +#include <stdlib.h>
31 +
32 #if 0
33 void auth_encrypt_connect(void);
34 void auth_encrypt_init(void);
35 diff -ru netkit-telnet-0.17/telnet/terminal.cc netkit-telnet-0.17-new/telnet/terminal.cc
36 --- netkit-telnet-0.17/telnet/terminal.cc 1999-12-12 20:48:05.000000000 +0100
37 +++ netkit-telnet-0.17-new/telnet/terminal.cc 2003-11-08 23:49:48.000000000 +0100
38 @@ -468,7 +468,7 @@
39
40 #ifdef SIGINFO
41 signal(SIGINFO, ayt);
42 -#endif SIGINFO
43 +#endif /* SIGINFO */
44
45 #if defined(NOKERNINFO)
46 tmp_tc.c_lflag |= NOKERNINFO;
47 @@ -504,7 +504,7 @@
48
49 #ifdef SIGINFO
50 signal(SIGINFO, ayt_status);
51 -#endif SIGINFO
52 +#endif /* SIGINFO */
53
54 #ifdef SIGTSTP
55 signal(SIGTSTP, SIG_DFL);
56 diff -ru netkit-telnet-0.17/telnet/utilities.cc netkit-telnet-0.17-new/telnet/utilities.cc
57 --- netkit-telnet-0.17/telnet/utilities.cc 1999-12-12 16:33:40.000000000 +0100
58 +++ netkit-telnet-0.17-new/telnet/utilities.cc 2003-11-08 23:54:01.000000000 +0100
59 @@ -285,7 +285,7 @@
60 length -= 2;
61 }
62 if (length < 1) {
63 - fprintf(NetTrace, "(Empty suboption???)");
64 + fprintf(NetTrace, "(Empty suboption?)");
65 return;
66 }
67 switch ((unsigned char)(pointer[0])) {
68 @@ -307,7 +307,7 @@
69 case TELOPT_TSPEED:
70 fprintf(NetTrace, "TERMINAL-SPEED");
71 if (length < 2) {
72 - fprintf(NetTrace, " (empty suboption???)");
73 + fprintf(NetTrace, " (empty suboption?)");
74 break;
75 }
76 switch (pointer[1]) {
77 @@ -329,7 +329,7 @@
78 case TELOPT_LFLOW:
79 fprintf(NetTrace, "TOGGLE-FLOW-CONTROL");
80 if (length < 2) {
81 - fprintf(NetTrace, " (empty suboption???)");
82 + fprintf(NetTrace, " (empty suboption?)");
83 break;
84 }
85 switch (pointer[1]) {
86 @@ -347,7 +347,7 @@
87 case TELOPT_NAWS:
88 fprintf(NetTrace, "NAWS");
89 if (length < 2) {
90 - fprintf(NetTrace, " (empty suboption???)");
91 + fprintf(NetTrace, " (empty suboption?)");
92 break;
93 }
94 if (length == 2) {
95 @@ -371,7 +371,7 @@
96 case TELOPT_LINEMODE:
97 fprintf(NetTrace, "LINEMODE ");
98 if (length < 2) {
99 - fprintf(NetTrace, " (empty suboption???)");
100 + fprintf(NetTrace, " (empty suboption?)");
101 break;
102 }
103 switch ((unsigned char)(pointer[1])) {
104 @@ -388,7 +388,7 @@
105 fprintf(NetTrace, "DONT ");
106 common:
107 if (length < 3) {
108 - fprintf(NetTrace, "(no option???)");
109 + fprintf(NetTrace, "(no option?)");
110 break;
111 }
112 switch ((unsigned char)(pointer[2])) {
113 @@ -441,7 +441,7 @@
114 case LM_MODE:
115 fprintf(NetTrace, "MODE ");
116 if (length < 3) {
117 - fprintf(NetTrace, "(no mode???)");
118 + fprintf(NetTrace, "(no mode?)");
119 break;
120 }
121 {
|