svn commit: r231280 - stable/9/usr.bin/systat

Ed Schouten ed at FreeBSD.org
Thu Feb 9 15:23:39 UTC 2012


Author: ed
Date: Thu Feb  9 15:23:39 2012
New Revision: 231280
URL: http://svn.freebsd.org/changeset/base/231280

Log:
  MFC r226424:
  
    Use integer to store the result of getch().
  
    We need to use an integer to make the comparison against ERR work.

Modified:
  stable/9/usr.bin/systat/keyboard.c
Directory Properties:
  stable/9/usr.bin/systat/   (props changed)

Modified: stable/9/usr.bin/systat/keyboard.c
==============================================================================
--- stable/9/usr.bin/systat/keyboard.c	Thu Feb  9 15:21:54 2012	(r231279)
+++ stable/9/usr.bin/systat/keyboard.c	Thu Feb  9 15:23:39 2012	(r231280)
@@ -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-stable mailing list