From owner-svn-ports-head@freebsd.org Wed Feb 1 05:27:21 2017 Return-Path: Delivered-To: svn-ports-head@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 3BD5DCCD70F; Wed, 1 Feb 2017 05:27:21 +0000 (UTC) (envelope-from jbeich@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 E64B010BB; Wed, 1 Feb 2017 05:27:20 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v115RJsH087919; Wed, 1 Feb 2017 05:27:19 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v115RJX8087917; Wed, 1 Feb 2017 05:27:19 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702010527.v115RJX8087917@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 1 Feb 2017 05:27:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432978 - head/emulators/fceux/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 05:27:21 -0000 Author: jbeich Date: Wed Feb 1 05:27:19 2017 New Revision: 432978 URL: https://svnweb.freebsd.org/changeset/ports/432978 Log: emulators/fceux: unbreak with clang 4.0 fceux-server/server.cpp:117:29: error: ordered comparison between pointer and zero ('char *' and 'int') while(fgets(buf, 256, fp) > 0) ~~~~~~~~~~~~~~~~~~~ ^ ~ src/cheat.cpp:219:30: error: ordered comparison between pointer and zero ('char *' and 'int') while(fgets(linebuf,2048,fp)>0) ~~~~~~~~~~~~~~~~~~~~~~^~ Reported by: antoine (via exp-run) Added: head/emulators/fceux/files/ head/emulators/fceux/files/patch-fceux-server_server.cpp (contents, props changed) head/emulators/fceux/files/patch-src_cheat.cpp (contents, props changed) Added: head/emulators/fceux/files/patch-fceux-server_server.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/fceux/files/patch-fceux-server_server.cpp Wed Feb 1 05:27:19 2017 (r432978) @@ -0,0 +1,11 @@ +--- fceux-server/server.cpp.orig 2012-11-02 13:41:36 UTC ++++ fceux-server/server.cpp +@@ -114,7 +114,7 @@ int LoadConfigFile(char *fn) + if(fp=fopen(fn,"rb")) + { + char buf[256]; +- while(fgets(buf, 256, fp) > 0) ++ while(fgets(buf, 256, fp)) + { + if(!strncasecmp(buf,"maxclients",strlen("maxclients"))) + sscanf(buf,"%*s %d",&ServerConfig.MaxClients); Added: head/emulators/fceux/files/patch-src_cheat.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/fceux/files/patch-src_cheat.cpp Wed Feb 1 05:27:19 2017 (r432978) @@ -0,0 +1,11 @@ +--- src/cheat.cpp.orig 2013-04-13 02:52:13 UTC ++++ src/cheat.cpp +@@ -216,7 +216,7 @@ void FCEU_LoadGameCheats(FILE *override) + } + + FCEU_DispMessage("Cheats file loaded.",0); //Tells user a cheats file was loaded. +- while(fgets(linebuf,2048,fp)>0) ++ while(fgets(linebuf,2048,fp)) + { + char *tbuf=linebuf; + int doc=0;