svn commit: r432978 - head/emulators/fceux/files
Jan Beich
jbeich at FreeBSD.org
Wed Feb 1 05:27:21 UTC 2017
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;
More information about the svn-ports-all
mailing list