From owner-svn-src-all@FreeBSD.ORG Thu Feb 9 15:23:39 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87373106568E; Thu, 9 Feb 2012 15:23:39 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 711B38FC22; Thu, 9 Feb 2012 15:23:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q19FNdTw007054; Thu, 9 Feb 2012 15:23:39 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q19FNdZJ007052; Thu, 9 Feb 2012 15:23:39 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201202091523.q19FNdZJ007052@svn.freebsd.org> From: Ed Schouten Date: Thu, 9 Feb 2012 15:23:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231280 - stable/9/usr.bin/systat X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2012 15:23:39 -0000 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;