aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-14 13:01:59 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-14 13:01:59 +0200
commitb3328d895e56778bc3e5521f005dd89f2b908b19 (patch)
treec7be716b5f6dc1003c92751313f0731c07ca89f3 /FICS/playerdb.c
parentaef8c222e06d023fb4e81c2823f069602de36ee1 (diff)
Use warn() instead
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r--FICS/playerdb.c5
1 files changed, 3 insertions, 2 deletions
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 <err.h>
+
#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;
}