summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-10-16 08:36:10 +0000
committered <ed@FreeBSD.org>2011-10-16 08:36:10 +0000
commit50100c914ebda5f60c1e9e20316d1a705beff2b6 (patch)
treef053325bf8043079c342d5dde628110b012aa5eb /usr.bin/systat
parenta8849a732314f250c7f5e8a580797774669830cb (diff)
downloadFreeBSD-src-50100c914ebda5f60c1e9e20316d1a705beff2b6.zip
FreeBSD-src-50100c914ebda5f60c1e9e20316d1a705beff2b6.tar.gz
Use integer to store the result of getch().
We need to use an integer to make the comparison against ERR work. MFC after: 3 months
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/keyboard.c b/usr.bin/systat/keyboard.c
index 8b9c101..e7e0014 100644
--- a/usr.bin/systat/keyboard.c
+++ b/usr.bin/systat/keyboard.c
@@ -47,8 +47,8 @@ static const char sccsid[] = "@(#)keyboard.c 8.1 (Berkeley) 6/6/93";
int
keyboard(void)
{
- char ch, line[80];
- int oldmask;
+ char line[80];
+ int ch, oldmask;
for (;;) {
col = 0;
OpenPOWER on IntegriCloud