mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Remove some #if 0'd code. After this, a "make unifdef" here produces
no changes (against crypto telnet). Reviewed by: MD5
This commit is contained in:
parent
0d7e18c3e1
commit
d427d1cc26
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104333
@ -1946,47 +1946,6 @@ telnet(char *user __unusedhere)
|
||||
}
|
||||
}
|
||||
|
||||
#if 0 /* XXX - this not being in is a bug */
|
||||
/*
|
||||
* nextitem()
|
||||
*
|
||||
* Return the address of the next "item" in the TELNET data
|
||||
* stream. This will be the address of the next character if
|
||||
* the current address is a user data character, or it will
|
||||
* be the address of the character following the TELNET command
|
||||
* if the current address is a TELNET IAC ("I Am a Command")
|
||||
* character.
|
||||
*/
|
||||
|
||||
static char *
|
||||
nextitem(char *current)
|
||||
{
|
||||
if ((*current&0xff) != IAC) {
|
||||
return current+1;
|
||||
}
|
||||
switch (*(current+1)&0xff) {
|
||||
case DO:
|
||||
case DONT:
|
||||
case WILL:
|
||||
case WONT:
|
||||
return current+3;
|
||||
case SB: /* loop forever looking for the SE */
|
||||
{
|
||||
char *look = current+2;
|
||||
|
||||
for (;;) {
|
||||
if ((*look++&0xff) == IAC) {
|
||||
if ((*look++&0xff) == SE) {
|
||||
return look;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
default:
|
||||
return current+2;
|
||||
}
|
||||
}
|
||||
#endif /* 0 */
|
||||
|
||||
/*
|
||||
* netclear()
|
||||
|
Loading…
Reference in New Issue
Block a user