From owner-svn-src-all@freebsd.org Mon May 2 15:07:44 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2B6AB2A3B7; Mon, 2 May 2016 15:07:44 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9055512C5; Mon, 2 May 2016 15:07:44 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u42F7hsB029686; Mon, 2 May 2016 15:07:43 GMT (envelope-from bz@FreeBSD.org) Received: (from bz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u42F7hI3029685; Mon, 2 May 2016 15:07:43 GMT (envelope-from bz@FreeBSD.org) Message-Id: <201605021507.u42F7hI3029685@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bz set sender to bz@FreeBSD.org using -f From: "Bjoern A. Zeeb" Date: Mon, 2 May 2016 15:07:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298924 - head/usr.bin/sdiff X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2016 15:07:44 -0000 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);