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
This commit is contained in:
Ed Schouten 2011-10-16 08:36:10 +00:00
parent 43f65c0c3c
commit 03d26e9e38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226424

View File

@ -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;