summaryrefslogtreecommitdiff
path: root/libexec/telnetd/termstat.c
diff options
context:
space:
mode:
authorrobin <robin@cvs.openbsd.org>1996-12-23 13:12:55 +0000
committerrobin <robin@cvs.openbsd.org>1996-12-23 13:12:55 +0000
commitb091d7e1ea9e2cf69fd0694da9b01b1c022b4611 (patch)
tree3ec1bb0f51854c121f54b67a9d59ccee3bc22f96 /libexec/telnetd/termstat.c
parentf2ee67ee45da10e5fcb81828f16a9daaad0cb6b3 (diff)
Add parentheses to assignment used as truth value to eliminate a compiler
warning.
Diffstat (limited to 'libexec/telnetd/termstat.c')
-rw-r--r--libexec/telnetd/termstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/telnetd/termstat.c b/libexec/telnetd/termstat.c
index 8c824f87bb3..9ab2f76e079 100644
--- a/libexec/telnetd/termstat.c
+++ b/libexec/telnetd/termstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: termstat.c,v 1.2 1996/03/28 23:22:05 niklas Exp $ */
+/* $OpenBSD: termstat.c,v 1.3 1996/12/23 13:12:54 robin Exp $ */
/* $NetBSD: termstat.c,v 1.5 1996/02/28 20:38:27 thorpej Exp $ */
/*
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)termstat.c 8.2 (Berkeley) 5/30/95";
static char rcsid[] = "$NetBSD: termstat.c,v 1.5 1996/02/28 20:38:27 thorpej Exp $";
#else
-static char rcsid[] = "$OpenBSD: termstat.c,v 1.2 1996/03/28 23:22:05 niklas Exp $";
+static char rcsid[] = "$OpenBSD: termstat.c,v 1.3 1996/12/23 13:12:54 robin Exp $";
#endif
#endif /* not lint */
@@ -468,7 +468,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