svn commit: r226424 - head/usr.bin/systat

Ed Schouten ed at FreeBSD.org
Sun Oct 16 08:36:10 UTC 2011


Author: ed
Date: Sun Oct 16 08:36:10 2011
New Revision: 226424
URL: http://svn.freebsd.org/changeset/base/226424

Log:
  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

Modified:
  head/usr.bin/systat/keyboard.c

Modified: head/usr.bin/systat/keyboard.c
==============================================================================
--- head/usr.bin/systat/keyboard.c	Sun Oct 16 08:14:12 2011	(r226423)
+++ head/usr.bin/systat/keyboard.c	Sun Oct 16 08:36:10 2011	(r226424)
@@ -47,8 +47,8 @@ static const char sccsid[] = "@(#)keyboa
 int
 keyboard(void)
 {
-	char ch, line[80];
-	int oldmask;
+	char line[80];
+	int ch, oldmask;
 
 	for (;;) {
 		col = 0;


More information about the svn-src-all mailing list