diff options
author | 2002-02-18 23:34:46 +0000 | |
---|---|---|
committer | 2002-02-18 23:34:46 +0000 | |
commit | 139e7275d2a1b04b5740ad2acd59582a49a0d8af (patch) | |
tree | befbd0aebd3f43144e0fc88fa441be371986fcd5 | |
parent | copy the segment regs w/ zeroing upper 16 bits (diff) | |
download | wireguard-openbsd-139e7275d2a1b04b5740ad2acd59582a49a0d8af.tar.xz wireguard-openbsd-139e7275d2a1b04b5740ad2acd59582a49a0d8af.zip |
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; |