From e29c5529906483bcb979c1ddbae77400b704fe1c Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Mon, 2 May 2016 15:07:43 +0000 Subject: [PATCH] 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" --- usr.bin/sdiff/sdiff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.bin/sdiff/sdiff.c b/usr.bin/sdiff/sdiff.c index 3a97e1041562..d1d763e43881 100644 --- a/usr.bin/sdiff/sdiff.c +++ b/usr.bin/sdiff/sdiff.c @@ -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);