Catch up with "base" telnet.
s/FALL THROUGH/FALLTHROUGH/ for lint(1). s/Usage/usage/ for consistency.
This commit is contained in:
parent
53889d70ff
commit
86953b026a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103955
@ -453,7 +453,7 @@ send_tncmd(void (*func)(int, int), const char *cmd, char *name)
|
||||
if (isprefix(name, "help") || isprefix(name, "?")) {
|
||||
int col, len;
|
||||
|
||||
printf("Usage: send %s <value|option>\n", cmd);
|
||||
printf("usage: send %s <value|option>\n", cmd);
|
||||
printf("\"value\" must be from 0 to 255\n");
|
||||
printf("Valid options are:\n\t");
|
||||
|
||||
|
@ -61,10 +61,6 @@ static const char sccsid[] = "@(#)main.c 8.3 (Berkeley) 5/30/95";
|
||||
#define OPTS_FORWARD_CREDS 0x00000002
|
||||
#define OPTS_FORWARDABLE_CREDS 0x00000001
|
||||
|
||||
#if 0
|
||||
#define FORWARD
|
||||
#endif
|
||||
|
||||
#if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC)
|
||||
char *ipsec_policy_in = NULL;
|
||||
char *ipsec_policy_out = NULL;
|
||||
@ -90,7 +86,7 @@ tninit(void)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s %s%s%s%s\n",
|
||||
fprintf(stderr, "usage: %s %s%s%s%s\n",
|
||||
prompt,
|
||||
#ifdef AUTHENTICATION
|
||||
"[-4] [-6] [-8] [-E] [-K] [-L] [-N] [-S tos] [-X atype] [-c] [-d]",
|
||||
|
@ -286,7 +286,7 @@ willoption(int option)
|
||||
case TELOPT_BINARY:
|
||||
case TELOPT_SGA:
|
||||
settimer(modenegotiated);
|
||||
/* FALL THROUGH */
|
||||
/* FALLTHROUGH */
|
||||
case TELOPT_STATUS:
|
||||
#ifdef AUTHENTICATION
|
||||
case TELOPT_AUTHENTICATION:
|
||||
@ -346,7 +346,7 @@ wontoption(int option)
|
||||
case TELOPT_SGA:
|
||||
if (!kludgelinemode)
|
||||
break;
|
||||
/* FALL THROUGH */
|
||||
/* FALLTHROUGH */
|
||||
#endif
|
||||
case TELOPT_ECHO:
|
||||
settimer(modenegotiated);
|
||||
@ -1418,7 +1418,7 @@ env_opt(unsigned char *buf, int len)
|
||||
old_env_var = OLD_ENV_VAR;
|
||||
old_env_value = OLD_ENV_VALUE;
|
||||
}
|
||||
/* FALL THROUGH */
|
||||
/* FALLTHROUGH */
|
||||
# endif
|
||||
case OLD_ENV_VALUE:
|
||||
/*
|
||||
@ -1426,7 +1426,7 @@ env_opt(unsigned char *buf, int len)
|
||||
* still recognize it, just in case it is an
|
||||
* old server that has VAR & VALUE mixed up...
|
||||
*/
|
||||
/* FALL THROUGH */
|
||||
/* FALLTHROUGH */
|
||||
#else
|
||||
case NEW_ENV_VAR:
|
||||
#endif
|
||||
@ -1439,7 +1439,7 @@ env_opt(unsigned char *buf, int len)
|
||||
break;
|
||||
case ENV_ESC:
|
||||
i++;
|
||||
/*FALL THROUGH*/
|
||||
/*FALLTHROUGH*/
|
||||
default:
|
||||
if (epc)
|
||||
*epc++ = buf[i];
|
||||
@ -1648,7 +1648,7 @@ telrcv(void)
|
||||
TTYADD(c);
|
||||
break;
|
||||
}
|
||||
/* Else, fall through */
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case TS_DATA:
|
||||
if (c == IAC) {
|
||||
|
@ -453,7 +453,7 @@ send_tncmd(void (*func)(int, int), const char *cmd, char *name)
|
||||
if (isprefix(name, "help") || isprefix(name, "?")) {
|
||||
int col, len;
|
||||
|
||||
printf("Usage: send %s <value|option>\n", cmd);
|
||||
printf("usage: send %s <value|option>\n", cmd);
|
||||
printf("\"value\" must be from 0 to 255\n");
|
||||
printf("Valid options are:\n\t");
|
||||
|
||||
|
@ -61,10 +61,6 @@ static const char sccsid[] = "@(#)main.c 8.3 (Berkeley) 5/30/95";
|
||||
#define OPTS_FORWARD_CREDS 0x00000002
|
||||
#define OPTS_FORWARDABLE_CREDS 0x00000001
|
||||
|
||||
#if 0
|
||||
#define FORWARD
|
||||
#endif
|
||||
|
||||
#if defined(IPSEC) && defined(IPSEC_POLICY_IPSEC)
|
||||
char *ipsec_policy_in = NULL;
|
||||
char *ipsec_policy_out = NULL;
|
||||
@ -90,7 +86,7 @@ tninit(void)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s %s%s%s%s\n",
|
||||
fprintf(stderr, "usage: %s %s%s%s%s\n",
|
||||
prompt,
|
||||
#ifdef AUTHENTICATION
|
||||
"[-4] [-6] [-8] [-E] [-K] [-L] [-N] [-S tos] [-X atype] [-c] [-d]",
|
||||
|
@ -286,7 +286,7 @@ willoption(int option)
|
||||
case TELOPT_BINARY:
|
||||
case TELOPT_SGA:
|
||||
settimer(modenegotiated);
|
||||
/* FALL THROUGH */
|
||||
/* FALLTHROUGH */
|
||||
case TELOPT_STATUS:
|
||||
#ifdef AUTHENTICATION
|
||||
case TELOPT_AUTHENTICATION:
|
||||
@ -346,7 +346,7 @@ wontoption(int option)
|
||||
case TELOPT_SGA:
|
||||
if (!kludgelinemode)
|
||||
break;
|
||||
/* FALL THROUGH */
|
||||
/* FALLTHROUGH */
|
||||
#endif
|
||||
case TELOPT_ECHO:
|
||||
settimer(modenegotiated);
|
||||
@ -1418,7 +1418,7 @@ env_opt(unsigned char *buf, int len)
|
||||
old_env_var = OLD_ENV_VAR;
|
||||
old_env_value = OLD_ENV_VALUE;
|
||||
}
|
||||
/* FALL THROUGH */
|
||||
/* FALLTHROUGH */
|
||||
# endif
|
||||
case OLD_ENV_VALUE:
|
||||
/*
|
||||
@ -1426,7 +1426,7 @@ env_opt(unsigned char *buf, int len)
|
||||
* still recognize it, just in case it is an
|
||||
* old server that has VAR & VALUE mixed up...
|
||||
*/
|
||||
/* FALL THROUGH */
|
||||
/* FALLTHROUGH */
|
||||
#else
|
||||
case NEW_ENV_VAR:
|
||||
#endif
|
||||
@ -1439,7 +1439,7 @@ env_opt(unsigned char *buf, int len)
|
||||
break;
|
||||
case ENV_ESC:
|
||||
i++;
|
||||
/*FALL THROUGH*/
|
||||
/*FALLTHROUGH*/
|
||||
default:
|
||||
if (epc)
|
||||
*epc++ = buf[i];
|
||||
@ -1648,7 +1648,7 @@ telrcv(void)
|
||||
TTYADD(c);
|
||||
break;
|
||||
}
|
||||
/* Else, fall through */
|
||||
/* FALLTHROUGH */
|
||||
|
||||
case TS_DATA:
|
||||
if (c == IAC) {
|
||||
|
Loading…
Reference in New Issue
Block a user