diff --git a/libexec/telnetd/state.c b/libexec/telnetd/state.c index 7e38cc418a06..4d6693c4974a 100644 --- a/libexec/telnetd/state.c +++ b/libexec/telnetd/state.c @@ -1,4 +1,4 @@ -/* $NetBSD: state.c,v 1.19 2001/08/20 11:01:48 wiz Exp $ */ +/* $NetBSD: state.c,v 1.20 2001/08/20 11:13:17 wiz Exp $ */ /* * Copyright (c) 1989, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)state.c 8.5 (Berkeley) 5/30/95"; #else -__RCSID("$NetBSD: state.c,v 1.19 2001/08/20 11:01:48 wiz Exp $"); +__RCSID("$NetBSD: state.c,v 1.20 2001/08/20 11:13:17 wiz Exp $"); #endif #endif /* not lint */ @@ -362,7 +362,7 @@ gotiac: switch (c) { continue; default: - syslog(LOG_ERR, "telnetd: panic state=%d\n", state); + syslog(LOG_ERR, "panic state=%d", state); printf("telnetd: panic state=%d\n", state); exit(1); } @@ -1243,7 +1243,7 @@ suboption() if (SB_EOF()) break; /* another garbage check */ - if (request == LM_SLC) { /* SLC is not preceeded by WILL or WONT */ + if (request == LM_SLC) { /* SLC is not preceded by WILL or WONT */ /* * Process suboption buffer of slc's */ diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c index 2ff4f3efa4dc..ca8d598c52b9 100644 --- a/libexec/telnetd/sys_term.c +++ b/libexec/telnetd/sys_term.c @@ -1,4 +1,4 @@ -/* $NetBSD: sys_term.c,v 1.24 2001/08/20 11:04:52 wiz Exp $ */ +/* $NetBSD: sys_term.c,v 1.25 2001/08/20 11:13:17 wiz Exp $ */ /* * Copyright (c) 1989, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)sys_term.c 8.4+1 (Berkeley) 5/30/95"; #else -__RCSID("$NetBSD: sys_term.c,v 1.24 2001/08/20 11:04:52 wiz Exp $"); +__RCSID("$NetBSD: sys_term.c,v 1.25 2001/08/20 11:13:17 wiz Exp $"); #endif #endif /* not lint */ @@ -1023,7 +1023,7 @@ struct termspeeds { #endif { -1, 0 } }; -#endif /* DECODE_BUAD */ +#endif /* DECODE_BAUD */ void tty_tspeed(val) @@ -1037,9 +1037,9 @@ tty_tspeed(val) if (tp->speed == -1) /* back up to last valid value */ --tp; cfsetospeed(&termbuf, tp->value); -#else /* DECODE_BUAD */ +#else /* DECODE_BAUD */ cfsetospeed(&termbuf, val); -#endif /* DECODE_BUAD */ +#endif /* DECODE_BAUD */ } void @@ -1837,7 +1837,7 @@ start_login(host, autologin, name) sleep(1); execv(loginprog, argv); - syslog(LOG_ERR, "%s: %m\n", loginprog); + syslog(LOG_ERR, "%s: %m", loginprog); fatalperror(net, loginprog); /*NOTREACHED*/ } @@ -2257,12 +2257,12 @@ cleantmpdir(jid, tpath, user) { switch(fork()) { case -1: - syslog(LOG_WARNING, "TMPDIR cleanup(%s): fork() failed: %m\n", + syslog(LOG_WARNING, "TMPDIR cleanup(%s): fork() failed: %m", tpath); break; case 0: execl(CLEANTMPCMD, CLEANTMPCMD, user, tpath, NULL); - syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m\n", + syslog(LOG_ERR, "TMPDIR cleanup(%s): execl(%s) failed: %m", tpath, CLEANTMPCMD); exit(1); default: