From e46b9f99caad85af7d27e370f7abf6a6da46cbd0 Mon Sep 17 00:00:00 2001 From: yar Date: Tue, 10 Jun 2003 16:34:03 +0000 Subject: Spot one more place where boolean variables were incremented instead of just being assigned a truth value. --- libexec/getty/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec') diff --git a/libexec/getty/main.c b/libexec/getty/main.c index 0bb4f5e..0eaf0a4 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -484,7 +484,7 @@ setttymode(const char *tname, int raw) gettable(tname, tabent); if (OPset || EPset || APset) - APset++, OPset++, EPset++; + APset = OPset = EPset = 1; setdefaults(); (void)tcflush(STDIN_FILENO, TCIOFLUSH); /* clear out the crap */ ioctl(STDIN_FILENO, FIONBIO, &off); /* turn off non-blocking mode */ -- cgit v1.1