gcc 4.3 warning/bug fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2320 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-08-14 08:58:07 +00:00
parent bd46ea29a6
commit 3b05838c82
9 changed files with 47 additions and 33 deletions
+2 -2
View File
@@ -141,7 +141,7 @@ FILE *openfile(const char *filename, const char *mode)
{
const char *found = findfile(filename, mode);
#ifndef STANDALONE
if(mode && mode[0]=='w' || mode[0]=='a') conoutf("writing to file: %s", found);
if(mode && (mode[0]=='w' || mode[0]=='a')) conoutf("writing to file: %s", found);
#endif
if(!found) return NULL;
return fopen(found, mode);
@@ -151,7 +151,7 @@ gzFile opengzfile(const char *filename, const char *mode)
{
const char *found = findfile(filename, mode);
#ifndef STANDALONE
if(mode && mode[0]=='w' || mode[0]=='a') conoutf("writing to file: %s", found);
if(mode && (mode[0]=='w' || mode[0]=='a')) conoutf("writing to file: %s", found);
#endif
if(!found) return NULL;
return gzopen(found, mode);