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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to