diff options
author | markm <markm@FreeBSD.org> | 2001-11-30 22:03:20 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-11-30 22:03:20 +0000 |
commit | b72e252a0180e401fa4d5bd71ab4374f6f6e2735 (patch) | |
tree | a9f59e2607b4ed11cf8a125c61c9da41e6c34519 /libexec/telnetd/termstat.c | |
parent | eb2bfb8b511d4491db83978d26c2ef682b2619c1 (diff) | |
download | FreeBSD-src-b72e252a0180e401fa4d5bd71ab4374f6f6e2735.zip FreeBSD-src-b72e252a0180e401fa4d5bd71ab4374f6f6e2735.tar.gz |
After running a "make unifdef", commit the resultant diffs.
This code is now a complete sunset of the crypto (master) code.
Diffstat (limited to 'libexec/telnetd/termstat.c')
-rw-r--r-- | libexec/telnetd/termstat.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/libexec/telnetd/termstat.c b/libexec/telnetd/termstat.c index b4fb137..14719a2 100644 --- a/libexec/telnetd/termstat.c +++ b/libexec/telnetd/termstat.c @@ -31,16 +31,17 @@ * SUCH DAMAGE. */ +#include <sys/cdefs.h> + +__FBSDID("$FreeBSD$"); + #ifndef lint -#if 0 static const char sccsid[] = "@(#)termstat.c 8.2 (Berkeley) 5/30/95"; #endif -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ #include "telnetd.h" + /* * local variables */ @@ -129,8 +130,8 @@ static int _terminit = 0; * then linemode is off, if server won't SGA, then linemode * is on. */ - void -localstat() +void +localstat(void) { int need_will_echo = 0; @@ -181,6 +182,7 @@ localstat() } } + /* * Do echo mode handling as soon as we know what the * linemode is going to be. @@ -333,8 +335,8 @@ done: * * Check for changes to flow control */ - void -flowstat() +void +flowstat(void) { if (his_state_is_will(TELOPT_LFLOW)) { if (tty_flowmode() != flowmode) { @@ -363,9 +365,8 @@ flowstat() * at a time, and if using kludge linemode, then only linemode may be * affected. */ - void -clientstat(code, parm1, parm2) - register int code, parm1, parm2; +void +clientstat(int code, int parm1, int parm2) { /* @@ -440,7 +441,7 @@ clientstat(code, parm1, parm2) case LM_MODE: { - register int ack, changed; + int ack, changed; /* * Client has sent along a mode mask. If it agrees with @@ -565,8 +566,8 @@ clientstat(code, parm1, parm2) * function is called when the pty state has been processed for the first time. * It calls other functions that do things that were deferred in each module. */ - void -defer_terminit() +void +defer_terminit(void) { /* @@ -600,8 +601,8 @@ defer_terminit() * * Returns true if the pty state has been processed yet. */ - int -terminit() +int +terminit(void) { return(_terminit); |