From fec99bfb866f6486fc42d8b24aac5a1602dab16b Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 29 Oct 2024 19:30:09 -0400 Subject: [PATCH] follow-up: parameter UNUSED as in most of NetHack --- util/dlb_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/util/dlb_main.c b/util/dlb_main.c index 67a485088..27310b303 100644 --- a/util/dlb_main.c +++ b/util/dlb_main.c @@ -134,10 +134,8 @@ Write(int out, char *buf, long len) /* open_library(dlb.c) needs this (which normally comes from src/files.c) */ FILE * -fopen_datafile(const char *filename, const char *mode, int prefix) +fopen_datafile(const char *filename, const char *mode, int prefix UNUSED) { - prefix = !prefix; /* not needed, silence compiler */ - return fopen(filename, mode); }