Date: Mon, 2 May 2016 15:07:43 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298924 - head/usr.bin/sdiff Message-ID: <201605021507.u42F7hI3029685@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Mon May 2 15:07:43 2016 New Revision: 298924 URL: https://svnweb.freebsd.org/changeset/base/298924 Log: 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" Modified: head/usr.bin/sdiff/sdiff.c Modified: head/usr.bin/sdiff/sdiff.c ============================================================================== --- head/usr.bin/sdiff/sdiff.c Mon May 2 14:35:57 2016 (r298923) +++ head/usr.bin/sdiff/sdiff.c Mon May 2 15:07:43 2016 (r298924) @@ -508,8 +508,7 @@ binexec(char *diffprog, char *f1, char * static int istextfile(FILE *f) { - int i; - char ch; + int ch, i; if (f == NULL) return (1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605021507.u42F7hI3029685>