diff options
| author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 05:51:47 +0000 |
|---|---|---|
| committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 05:51:47 +0000 |
| commit | 6c06b4e2aa2a28d1f0bbd29ecdce35aaaf600ce8 (patch) | |
| tree | e1331adb5d216f2b3fa6baa6491752348d2e5f10 /libexec/telnetd | |
| parent | a2f0036ac41fe46dd47d6339982567f19437ade9 (diff) | |
Notes
Diffstat (limited to 'libexec/telnetd')
| -rw-r--r-- | libexec/telnetd/pathnames.h | 2 | ||||
| -rw-r--r-- | libexec/telnetd/slc.c | 14 | ||||
| -rw-r--r-- | libexec/telnetd/state.c | 2 | ||||
| -rw-r--r-- | libexec/telnetd/sys_term.c | 8 | ||||
| -rw-r--r-- | libexec/telnetd/telnetd.c | 6 | ||||
| -rw-r--r-- | libexec/telnetd/termstat.c | 14 | ||||
| -rw-r--r-- | libexec/telnetd/utility.c | 12 |
7 files changed, 29 insertions, 29 deletions
diff --git a/libexec/telnetd/pathnames.h b/libexec/telnetd/pathnames.h index c8b0806e7814..4e14a88b49cd 100644 --- a/libexec/telnetd/pathnames.h +++ b/libexec/telnetd/pathnames.h @@ -42,7 +42,7 @@ # endif #else - + # define _PATH_TTY "/dev/tty" # ifndef _PATH_LOGIN # define _PATH_LOGIN "/bin/login" diff --git a/libexec/telnetd/slc.c b/libexec/telnetd/slc.c index 145746afeaf4..a03bd9d3f42d 100644 --- a/libexec/telnetd/slc.c +++ b/libexec/telnetd/slc.c @@ -109,10 +109,10 @@ get_slc_defaults() init_termbuf(); for (i = 1; i <= NSLC; i++) { - slctab[i].defset.flag = + slctab[i].defset.flag = spcset(i, &slctab[i].defset.val, &slctab[i].sptr); - slctab[i].current.flag = SLC_NOSUPPORT; - slctab[i].current.val = 0; + slctab[i].current.flag = SLC_NOSUPPORT; + slctab[i].current.val = 0; } } /* end of get_slc_defaults */ @@ -286,7 +286,7 @@ change_slc(func, flag, val) register cc_t val; { register int hislevel, mylevel; - + hislevel = flag & SLC_LEVELBITS; mylevel = slctab[func].defset.flag & SLC_LEVELBITS; /* @@ -345,7 +345,7 @@ change_slc(func, flag, val) * request as he asks. * * If our level is DEFAULT, then just ack whatever was - * sent. + * sent. * * If he can't change and we can't change, * then degenerate to NOSUPPORT. @@ -372,7 +372,7 @@ change_slc(func, flag, val) slctab[func].defset.val; val = slctab[func].current.val; } - + } add_slc(func, flag, val); } @@ -423,7 +423,7 @@ check_slc() slctab[i].current.val); } } - + } /* check_slc */ /* diff --git a/libexec/telnetd/state.c b/libexec/telnetd/state.c index c957734e71ac..db9fbe814df4 100644 --- a/libexec/telnetd/state.c +++ b/libexec/telnetd/state.c @@ -376,7 +376,7 @@ gotiac: switch (c) { * All state defaults are negative, and resp defaults to 0. * * When initiating a request to change state to new_state: - * + * * if ((want_resp == 0 && new_state == my_state) || want_state == new_state) { * do nothing; * } else { diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c index 786661c097b6..75070af90b35 100644 --- a/libexec/telnetd/sys_term.c +++ b/libexec/telnetd/sys_term.c @@ -1083,7 +1083,7 @@ getptyslave() #ifdef USE_TERMIO ttyfd = t; #endif - if (ioctl(t, I_PUSH, "ptem") < 0) + if (ioctl(t, I_PUSH, "ptem") < 0) fatal(net, "I_PUSH ptem"); if (ioctl(t, I_PUSH, "ldterm") < 0) fatal(net, "I_PUSH ldterm"); @@ -1583,7 +1583,7 @@ start_login(host, autologin, name) if (bftpd) { argv = addarg(argv, "-e"); argv = addarg(argv, BFTPPATH); - } else + } else #endif #if defined (SecurID) /* @@ -1677,7 +1677,7 @@ start_login(host, autologin, name) if (user = getenv("USER")) { if (strchr(user, '-')) { syslog(LOG_ERR, "tried to pass user \"%s\" to login", - user); + user); fatal(net, "invalid user"); } argv = addarg(argv, getenv("USER")); @@ -2073,7 +2073,7 @@ rmut() if (statbf.st_size && utmp) { nutmp = read(f, (char *)utmp, (int)statbf.st_size); nutmp /= sizeof(struct utmp); - + for (u = utmp ; u < &utmp[nutmp] ; u++) { if (SCMPN(u->ut_line, line+5) || u->ut_name[0]==0) diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c index 5b2a884e6982..87e017da7692 100644 --- a/libexec/telnetd/telnetd.c +++ b/libexec/telnetd/telnetd.c @@ -784,7 +784,7 @@ doit(who) #if defined(_SC_CRAY_SECURE_SYS) /* - * set ttyp line security label + * set ttyp line security label */ if (secflag) { char slave_dev[16]; @@ -1368,7 +1368,7 @@ telnet(f, p, host) } cleanup(0); } /* end of telnet */ - + #ifndef TCSIG # ifdef TIOCSIG # define TCSIG TIOCSIG @@ -1444,7 +1444,7 @@ int readstream(p, ibuf, bufsize) tp = (struct termio *) (ibuf+1 + sizeof(struct iocblk)); vstop = tp->c_cc[VSTOP]; vstart = tp->c_cc[VSTART]; - ixon = tp->c_iflag & IXON; + ixon = tp->c_iflag & IXON; break; default: errno = EAGAIN; diff --git a/libexec/telnetd/termstat.c b/libexec/telnetd/termstat.c index 25124a039386..3fde25a50c3f 100644 --- a/libexec/telnetd/termstat.c +++ b/libexec/telnetd/termstat.c @@ -301,7 +301,7 @@ localstat() nfrontp += 7; editmode = useeditmode; } - + /* * Check for changes to special characters in use. @@ -403,7 +403,7 @@ clientstat(code, parm1, parm2) uselinemode = 1; } } - + /* * Quit now if we can't do it. */ @@ -444,7 +444,7 @@ clientstat(code, parm1, parm2) send_will(TELOPT_ECHO, 1); } break; - + case LM_MODE: { register int ack, changed; @@ -493,7 +493,7 @@ clientstat(code, parm1, parm2) IAC, SE); nfrontp += 7; } - + editmode = useeditmode; } @@ -527,9 +527,9 @@ clientstat(code, parm1, parm2) (void) ioctl(pty, TIOCSWINSZ, (char *)&ws); } #endif /* TIOCSWINSZ */ - + break; - + case TELOPT_TSPEED: { def_tspeed = parm1; @@ -594,7 +594,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 diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c index 1fbd7e3603c6..4f5c2e6fc0c5 100644 --- a/libexec/telnetd/utility.c +++ b/libexec/telnetd/utility.c @@ -679,7 +679,7 @@ printsub(direction, pointer, length) break; } break; - + case LM_SLC: sprintf(nfrontp, "SLC"); nfrontp += strlen(nfrontp); @@ -829,7 +829,7 @@ printsub(direction, pointer, length) nfrontp += strlen(nfrontp); break; - + default: sprintf(nfrontp, " %d", pointer[i]); nfrontp += strlen(nfrontp); @@ -932,7 +932,7 @@ printsub(direction, pointer, length) case TELOPT_AUTHENTICATION: sprintf(nfrontp, "AUTHENTICATION"); nfrontp += strlen(nfrontp); - + if (length < 2) { sprintf(nfrontp, " (empty suboption??\?)"); nfrontp += strlen(nfrontp); @@ -1050,13 +1050,13 @@ printdata(tag, ptr, cnt) nfrontp += strlen(nfrontp); for (i = 0; i < 20 && cnt; i++) { sprintf(nfrontp, "%02x", *ptr); - nfrontp += strlen(nfrontp); + nfrontp += strlen(nfrontp); if (isprint(*ptr)) { xbuf[i] = *ptr; } else { xbuf[i] = '.'; } - if (i % 2) { + if (i % 2) { *nfrontp = ' '; nfrontp++; } @@ -1066,6 +1066,6 @@ printdata(tag, ptr, cnt) xbuf[i] = '\0'; sprintf(nfrontp, " %s\r\n", xbuf ); nfrontp += strlen(nfrontp); - } + } } #endif /* DIAGNOSTICS */ |
