diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-02-18 23:34:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-02-18 23:34:47 +0000 |
commit | 8ffd959b3c854fda70f78d14b8210e60b23382c4 (patch) | |
tree | 905106b266c329f4bbe4b645042e9a1c98443be2 | |
parent | 337ad73ee60ad5ba7af14b60edbc59afd444838d (diff) |
more "char c = getchar(); if (c == EOF) ..." balony
-rw-r--r-- | usr.bin/systat/keyboard.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/systat/keyboard.c b/usr.bin/systat/keyboard.c index e90c38a49d6..984eb7894e4 100644 --- a/usr.bin/systat/keyboard.c +++ b/usr.bin/systat/keyboard.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keyboard.c,v 1.10 2001/12/07 09:18:08 deraadt Exp $ */ +/* $OpenBSD: keyboard.c,v 1.11 2002/02/18 23:34:46 deraadt Exp $ */ /* $NetBSD: keyboard.c,v 1.2 1995/01/20 08:51:59 jtc Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)keyboard.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: keyboard.c,v 1.10 2001/12/07 09:18:08 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: keyboard.c,v 1.11 2002/02/18 23:34:46 deraadt Exp $"; #endif /* not lint */ #include <ctype.h> @@ -52,8 +52,9 @@ static char rcsid[] = "$OpenBSD: keyboard.c,v 1.10 2001/12/07 09:18:08 deraadt E void keyboard() { - char ch, line[80]; + char line[80]; sigset_t mask, omask; + int ch; for (;;) { col = 0; |