2000-06-20 10:27:33 -04:00
|
|
|
|
diff -uNr --exclude=*.orig work.old/ztelnet/telnet/commands.c work/ztelnet/telnet/commands.c
|
|
|
|
|
--- work.old/ztelnet/telnet/commands.c Wed Sep 20 09:03:45 1995
|
|
|
|
|
+++ work/ztelnet/telnet/commands.c Tue Jun 20 22:58:31 2000
|
|
|
|
|
@@ -93,6 +93,10 @@
|
|
|
|
|
static int margc;
|
|
|
|
|
static char *margv[20];
|
|
|
|
|
|
|
|
|
|
+ void send_wont();
|
|
|
|
|
+ void send_dont();
|
|
|
|
|
+ void send_will();
|
|
|
|
|
+ void send_do();
|
|
|
|
|
static void
|
|
|
|
|
makeargv()
|
|
|
|
|
{
|
|
|
|
|
@@ -230,10 +234,8 @@
|
|
|
|
|
int nbyte; /* Number of bytes to send this command */
|
|
|
|
|
int what; /* Character to be sent (<0 ==> special) */
|
|
|
|
|
};
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
-/* PMS
|
|
|
|
|
-extern int
|
|
|
|
|
-*/
|
|
|
|
|
static int
|
|
|
|
|
send_esc P((void)),
|
|
|
|
|
send_help P((void)),
|
|
|
|
|
@@ -370,7 +372,6 @@
|
|
|
|
|
send_docmd(name)
|
|
|
|
|
char *name;
|
|
|
|
|
{
|
|
|
|
|
- void send_do();
|
|
|
|
|
return(send_tncmd(send_do, "do", name));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -378,21 +379,18 @@
|
|
|
|
|
send_dontcmd(name)
|
|
|
|
|
char *name;
|
|
|
|
|
{
|
|
|
|
|
- void send_dont();
|
|
|
|
|
return(send_tncmd(send_dont, "dont", name));
|
|
|
|
|
}
|
|
|
|
|
static int
|
|
|
|
|
send_willcmd(name)
|
|
|
|
|
char *name;
|
|
|
|
|
{
|
|
|
|
|
- void send_will();
|
|
|
|
|
return(send_tncmd(send_will, "will", name));
|
|
|
|
|
}
|
|
|
|
|
static int
|
|
|
|
|
send_wontcmd(name)
|
|
|
|
|
char *name;
|
|
|
|
|
{
|
|
|
|
|
- void send_wont();
|
|
|
|
|
return(send_tncmd(send_wont, "wont", name));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -590,11 +588,8 @@
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-/* PMS
|
|
|
|
|
-extern int togglehelp P((void));
|
|
|
|
|
-*/
|
|
|
|
|
-static int togglehelp P((void));
|
|
|
|
|
|
|
|
|
|
+static int togglehelp P((void));
|
|
|
|
|
#if defined(AUTHENTICATE)
|
|
|
|
|
extern int auth_togdebug P((int));
|
1998-03-18 13:53:00 -05:00
|
|
|
|
#endif
|
2000-06-20 10:27:33 -04:00
|
|
|
|
@@ -828,12 +823,8 @@
|
|
|
|
|
*/
|
|
|
|
|
|
1998-03-18 13:53:00 -05:00
|
|
|
|
#ifdef USE_TERMIO
|
2000-06-20 10:27:33 -04:00
|
|
|
|
-#ifdef BYPMS
|
|
|
|
|
-struct termios new_tc = { 0 };
|
|
|
|
|
-#else
|
|
|
|
|
struct termio new_tc = { 0 };
|
1998-03-18 13:53:00 -05:00
|
|
|
|
#endif
|
2000-06-20 10:27:33 -04:00
|
|
|
|
-#endif
|
1998-03-18 13:53:00 -05:00
|
|
|
|
|
2000-06-20 10:27:33 -04:00
|
|
|
|
struct setlist {
|
|
|
|
|
char *name; /* name */
|
|
|
|
|
@@ -1559,9 +1550,6 @@
|
|
|
|
|
int arg;
|
|
|
|
|
};
|
1998-03-18 13:53:00 -05:00
|
|
|
|
|
2000-06-20 10:27:33 -04:00
|
|
|
|
-/* PMS
|
|
|
|
|
-extern void slc_help();
|
|
|
|
|
-*/
|
|
|
|
|
static void slc_help();
|
|
|
|
|
|
|
|
|
|
struct slclist SlcList[] = {
|
|
|
|
|
@@ -1640,15 +1628,13 @@
|
|
|
|
|
|
|
|
|
|
extern struct env_lst *
|
|
|
|
|
env_define P((unsigned char *, unsigned char *));
|
|
|
|
|
-extern void
|
|
|
|
|
+static void
|
|
|
|
|
env_undefine P((unsigned char *)),
|
|
|
|
|
env_export P((unsigned char *)),
|
|
|
|
|
env_unexport P((unsigned char *)),
|
|
|
|
|
env_send P((unsigned char *)),
|
|
|
|
|
- env_list P((void));
|
|
|
|
|
-
|
|
|
|
|
-/* PMS: extern is replaced by static */
|
|
|
|
|
-static void env_help P((void));
|
|
|
|
|
+ env_list P((void)),
|
|
|
|
|
+ env_help P((void));
|
|
|
|
|
|
|
|
|
|
struct envlist EnvList[] = {
|
|
|
|
|
{ "define", "Define an environment variable",
|
|
|
|
|
@@ -2232,7 +2218,7 @@
|
|
|
|
|
register struct hostent *host = 0;
|
|
|
|
|
struct sockaddr_in sin;
|
|
|
|
|
struct servent *sp = 0;
|
|
|
|
|
- unsigned long temp, inet_addr();
|
|
|
|
|
+ unsigned long temp;/*, inet_addr();*/
|
|
|
|
|
extern char *inet_ntoa();
|
|
|
|
|
#if defined(IP_OPTIONS) && defined(IPPROTO_IP)
|
|
|
|
|
char *srp = 0, *strrchr();
|
|
|
|
|
@@ -2489,11 +2475,7 @@
|
|
|
|
|
envhelp[] = "change environment variables ('environ ?' for more)",
|
|
|
|
|
modestring[] = "try to enter line or character mode ('mode ?' for more)";
|
|
|
|
|
|
|
|
|
|
-/* PMS
|
|
|
|
|
-extern int help();
|
|
|
|
|
-*/
|
|
|
|
|
-
|
|
|
|
|
-static int help();
|
|
|
|
|
+static int help();
|
1998-03-18 13:53:00 -05:00
|
|
|
|
|
2000-06-20 10:27:33 -04:00
|
|
|
|
static Command cmdtab[] = {
|
|
|
|
|
{ "close", closehelp, bye, 1 },
|