summaryrefslogtreecommitdiffstats
path: root/libexec/telnetd/termstat.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-12-03 07:16:08 +0000
committercharnier <charnier@FreeBSD.org>1997-12-03 07:16:08 +0000
commit4fb0a742b1c5240b2cad42e221aa28ac18f8afa2 (patch)
treeb28511d60d77bf6230e67126c80e71232c503c81 /libexec/telnetd/termstat.c
parent27c596e1ed6ea0fe26b2cf64d9e5a257d92f2d34 (diff)
downloadFreeBSD-src-4fb0a742b1c5240b2cad42e221aa28ac18f8afa2.zip
FreeBSD-src-4fb0a742b1c5240b2cad42e221aa28ac18f8afa2.tar.gz
Use err(3). Remove progname and trailing \n in syslog strings.
Diffstat (limited to 'libexec/telnetd/termstat.c')
-rw-r--r--libexec/telnetd/termstat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libexec/telnetd/termstat.c b/libexec/telnetd/termstat.c
index 9cb2b63..b95aa5f 100644
--- a/libexec/telnetd/termstat.c
+++ b/libexec/telnetd/termstat.c
@@ -29,12 +29,14 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $Id$
*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#)termstat.c 8.1 (Berkeley) 6/4/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include "telnetd.h"
@@ -471,7 +473,7 @@ clientstat(code, parm1, parm2)
ack = (useeditmode & MODE_ACK);
useeditmode &= ~MODE_ACK;
- if (changed = (useeditmode ^ editmode)) {
+ if ((changed = (useeditmode ^ editmode))) {
/*
* This check is for a timing problem. If the
* state of the tty has changed (due to the user
OpenPOWER on IntegriCloud