From b3328d895e56778bc3e5521f005dd89f2b908b19 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 14 Apr 2024 13:01:59 +0200 Subject: Use warn() instead --- FICS/playerdb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'FICS/playerdb.c') diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 382cba9..f6f99f2 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -34,6 +34,8 @@ #include "stdinclude.h" #include "common.h" +#include + #include "command.h" #include "comproc.h" #include "config.h" @@ -1076,8 +1078,7 @@ player_save(int p) parray[p].login[0], parray[p].login); if ((fp = fopen(fname, "w")) == NULL) { - fprintf(stderr, "FICS: Problem opening file %s for write\n", - fname); + warn("%s: Problem opening file %s for write", __func__, fname); return -1; } -- cgit v1.2.3