From: PatR Date: Tue, 15 May 2018 11:15:41 +0000 (-0700) Subject: debug logging X-Git-Tag: NetHack-3.6.2_Released~274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc75055263d64c7ea75331e26e94dcd4d294cb3a;p=nethack debug logging Remove unused variables. --- diff --git a/src/files.c b/src/files.c index cd5277acb..c122c3794 100644 --- a/src/files.c +++ b/src/files.c @@ -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); }