aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/board.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-13 17:29:25 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-13 17:29:25 +0200
commit65d0123c3a1f8f91bdafca02cc1d0f6e0a6f8903 (patch)
tree28eae82ba679197223da9f211efe63e4cce3cdbd /FICS/board.c
parentebdec4bcefe286c6b322bf26aa48b32aac6b57e5 (diff)
Switched to usage of warn()
Diffstat (limited to 'FICS/board.c')
-rw-r--r--FICS/board.c5
1 files changed, 3 insertions, 2 deletions
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 <err.h>
+
#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;
}