mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 05:00:30 -04:00
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)
11 lines
361 B
C++
11 lines
361 B
C++
--- 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);
|