Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/telnetd Typo fixes and syslog string improvements, f...
details: https://anonhg.NetBSD.org/src/rev/74fee01b707f
branches: trunk
changeset: 514027:74fee01b707f
user: wiz <wiz%NetBSD.org@localhost>
date: Mon Aug 20 11:13:17 2001 +0000
description:
Typo fixes and syslog string improvements, from bin/13667 by Brian Ginsbach.
diffstat:
libexec/telnetd/state.c | 8 ++++----
libexec/telnetd/sys_term.c | 16 ++++++++--------
2 files changed, 12 insertions(+), 12 deletions(-)
diffs (99 lines):
diff -r f8f9283b3012 -r 74fee01b707f libexec/telnetd/state.c
--- a/libexec/telnetd/state.c Mon Aug 20 11:12:19 2001 +0000
+++ b/libexec/telnetd/state.c Mon Aug 20 11:13:17 2001 +0000
@@ -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 @@
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 @@
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 -r f8f9283b3012 -r 74fee01b707f libexec/telnetd/sys_term.c
--- a/libexec/telnetd/sys_term.c Mon Aug 20 11:12:19 2001 +0000
+++ b/libexec/telnetd/sys_term.c Mon Aug 20 11:13:17 2001 +0000
@@ -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 @@
#endif
{ -1, 0 }
};
-#endif /* DECODE_BUAD */
+#endif /* DECODE_BAUD */
void
tty_tspeed(val)
@@ -1037,9 +1037,9 @@
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 @@
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 @@
{
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:
Home |
Main Index |
Thread Index |
Old Index