From 65d0123c3a1f8f91bdafca02cc1d0f6e0a6f8903 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 13 Apr 2024 17:29:25 +0200 Subject: Switched to usage of warn() --- FICS/board.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'FICS') diff --git a/FICS/board.c b/FICS/board.c index 56c2fa2..f6ab958 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -27,6 +27,8 @@ #include "stdinclude.h" #include "common.h" +#include + #include "board.h" #include "gamedb.h" #include "playerdb.h" @@ -1286,8 +1288,7 @@ wild_update(int style) sprintf(fname, "%s/wild/%d", board_dir, style); if ((fp = fopen(fname, "w")) == NULL) { - fprintf(stderr, "FICS: Can't write file name %s\n", - fname); + warn("%s: can't write file name: %s", __func__, fname); return; } -- cgit v1.2.3