mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
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:
parent
32a71a72e1
commit
e29c552990
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298924
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user