From cd7c80a7a6136b08d4f8fe57b8af5abf593b1fdc Mon Sep 17 00:00:00 2001 From: robin Date: Mon, 23 Dec 1996 13:12:54 +0000 Subject: [PATCH] Add parentheses to assignment used as truth value to eliminate a compiler warning. --- libexec/telnetd/termstat.c | 6 +++--- 1 file 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 -- 2.20.1