diff options
author | bde <bde@FreeBSD.org> | 1997-08-02 18:46:42 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-08-02 18:46:42 +0000 |
commit | d7d37d2613dfc3f61618da7c36af64d0fc652946 (patch) | |
tree | 4a088f698500247557a3f26a538423b44adb1720 /libexec/telnetd/termstat.c | |
parent | 93bb6c4e7ec3c3ab39adfd3e28ed163c7f14cf18 (diff) | |
download | FreeBSD-src-d7d37d2613dfc3f61618da7c36af64d0fc652946.zip FreeBSD-src-d7d37d2613dfc3f61618da7c36af64d0fc652946.tar.gz |
Import Lite2's src/libexec, except for makekey (which was spammed
by a repository copy from 1.1.5 and patched back to Lite1) and
rbootd/bootdir/SYSHPBSD (which is binary). All changed files have
already left the vendor branch.
Diffstat (limited to 'libexec/telnetd/termstat.c')
-rw-r--r-- | libexec/telnetd/termstat.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libexec/telnetd/termstat.c b/libexec/telnetd/termstat.c index a3f6931..ebc843a 100644 --- a/libexec/telnetd/termstat.c +++ b/libexec/telnetd/termstat.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)termstat.c 8.1 (Berkeley) 6/4/93"; +static char sccsid[] = "@(#)termstat.c 8.2 (Berkeley) 5/30/95"; #endif /* not lint */ #include "telnetd.h" @@ -320,7 +320,7 @@ localstat() nfrontp += 7; editmode = useeditmode; } - + /* * Check for changes to special characters in use. @@ -422,7 +422,7 @@ clientstat(code, parm1, parm2) uselinemode = 1; } } - + /* * Quit now if we can't do it. */ @@ -463,7 +463,7 @@ clientstat(code, parm1, parm2) send_will(TELOPT_ECHO, 1); } break; - + case LM_MODE: { register int ack, changed; @@ -512,7 +512,7 @@ clientstat(code, parm1, parm2) IAC, SE); nfrontp += 7; } - + editmode = useeditmode; } @@ -546,9 +546,9 @@ clientstat(code, parm1, parm2) (void) ioctl(pty, TIOCSWINSZ, (char *)&ws); } #endif /* TIOCSWINSZ */ - + break; - + case TELOPT_TSPEED: { def_tspeed = parm1; @@ -613,7 +613,7 @@ _termstat() * * Some things should not be done until after the login process has started * and all the pty modes are set to what they are supposed to be. This - * function is called when the pty state has been processed for the first time. + * 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 @@ -632,7 +632,7 @@ defer_terminit() if (def_col || def_row) { struct winsize ws; - bzero((char *)&ws, sizeof(ws)); + memset((char *)&ws, 0, sizeof(ws)); ws.ws_col = def_col; ws.ws_row = def_row; (void) ioctl(pty, TIOCSWINSZ, (char *)&ws); |