changeset 17:d67cac79f0f1

Change logf to logfi
author edwarj4
date Tue, 10 Nov 2009 22:48:16 +0000
parents a731f515575e
children 95e2bbb7b6e0
files rogue3/main.c rogue3/rip.c rogue3/rogue.h
diffstat 3 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/rogue3/main.c	Tue Nov 10 22:38:46 2009 +0000
+++ b/rogue3/main.c	Tue Nov 10 22:48:16 2009 +0000
@@ -23,7 +23,7 @@
 WINDOW *hw;                              /* Used for the help command */
 WINDOW *mw;                              /* Used to store mosnters */
 FILE   *scoreboard = NULL;
-FILE   *logf = NULL;
+FILE   *logfi = NULL;
 
 main(argc, argv, envp)
 char **argv;
--- 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;
 }
--- a/rogue3/rogue.h	Tue Nov 10 22:38:46 2009 +0000
+++ b/rogue3/rogue.h	Tue Nov 10 22:48:16 2009 +0000
@@ -443,7 +443,7 @@
 extern int                   jump;			/* Show running as series of jumps */
 extern int                   lastscore;			/* Score before this turn */
 extern int                   level;			/* What level rogue is on */
-extern FILE *                logf;
+extern FILE *                logfi;
 extern char                  lvl_mons[27];
 extern struct linked_list *  lvl_obj;			/* List of objects on this level */
 extern int                   max_hp;			/* Player's max hit points */