debug logging
authorPatR <rankin@nethack.org>
Tue, 15 May 2018 11:15:41 +0000 (04:15 -0700)
committerPatR <rankin@nethack.org>
Tue, 15 May 2018 11:15:41 +0000 (04:15 -0700)
Remove unused variables.

src/files.c

index cd5277acbf97db0b3066d507863188b2b193930f..c122c3794246b443589e3ca66ace9298bdff6ee8 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 files.c $NHDT-Date: 1524950534 2018/04/28 21:22:14 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.238 $ */
+/* NetHack 3.6 files.c $NHDT-Date: 1526382938 2018/05/15 11:15:38 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.240 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /*-Copyright (c) Derek S. Ray, 2015. */
 /* NetHack may be freely redistributed.  See license for details. */
@@ -3579,7 +3579,6 @@ const char *reason; /* explanation */
     return;
 }
 
-/*ARGSUSED*/
 void
 testinglog(filenm, type, reason)
 const char *filenm;   /* ad hoc file name */
@@ -3589,14 +3588,13 @@ const char *reason;   /* explanation */
     FILE *lfile;
     char fnbuf[BUFSZ];
 
-    if (!filenm) return;
+    if (!filenm)
+        return;
     Strcpy(fnbuf, filenm);
     if (index(fnbuf, '.') == 0)
         Strcat(fnbuf, ".log");
     lfile = fopen_datafile(fnbuf, "a", TROUBLEPREFIX);
     if (lfile) {
-        time_t now = getnow();
-        int uid = getuid();
         (void) fprintf(lfile, "%s\n%s\n", type, reason);
         (void) fclose(lfile);
     }