fgetc returns an int not a char.

Found by:   powerpc builds failing due to comparing with EOF raised:
"comparison is always false due to limited range of data type"
This commit is contained in:
Bjoern A. Zeeb 2016-05-02 15:07:43 +00:00
parent 32a71a72e1
commit e29c552990
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298924

View File

@ -508,8 +508,7 @@ binexec(char *diffprog, char *f1, char *f2)
static int
istextfile(FILE *f)
{
int i;
char ch;
int ch, i;
if (f == NULL)
return (1);