Mercurial > hg > early-roguelike
diff rogue3/rip.c @ 17:d67cac79f0f1
Change logf to logfi
author | edwarj4 |
---|---|
date | Tue, 10 Nov 2009 22:48:16 +0000 |
parents | a731f515575e |
children | 95e2bbb7b6e0 |
line wrap: on
line diff
--- a/rogue3/rip.c Tue Nov 10 22:38:46 2009 +0000 +++ b/rogue3/rip.c Tue Nov 10 22:48:16 2009 +0000 @@ -125,20 +125,20 @@ void open_log(void) { #ifdef LOGFILE - if (logf != NULL) { - rewind(logf); + if (logfi != NULL) { + rewind(logfi); return; } - logf = fopen(LOGFILE, "a"); + logfi = fopen(LOGFILE, "a"); - if (logf == NULL) + if (logfi == NULL) { fprintf(stderr, "Could not open %s for appending: %s\n", LOGFILE, strerror(errno)); fflush(stderr); } #else - logf == NULL; + logfi == NULL; #endif return; } @@ -355,14 +355,14 @@ else return; - logf = fopen(LOGFILE, "a"); /* permissions? */ - if (logf == NULL) + logfi = fopen(LOGFILE, "a"); /* permissions? */ + if (logfi == NULL) return; /* and write it */ - md_lockfile(logf); - fprintf(logf, "%s", logmessage); - md_unlockfile(logf); - fclose(logf); + md_lockfile(logfi); + fprintf(logfi, "%s", logmessage); + md_unlockfile(logfi); + fclose(logfi); #endif return; }