aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-03-07 12:39:26 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2026-03-07 12:39:26 +0100
commit1b49a3478621a50585947978c89cd094e1b5f75a (patch)
tree910c4aee8b626e2f3a74548a77c752daef8ed41c /FICS/utils.c
parent30c7809195d2337388ac28eccc633d4b453622e5 (diff)
psend_file: log fclose() error
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 96b54cd..679aa08 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -563,7 +563,8 @@ psend_file(int p, const char *dir, const char *file)
pprintf(p, "Type [next] to see next page.\n");
}
- fclose(fp);
+ if (fclose(fp) != 0)
+ warn("%s: fclose() error", __func__);
return 0;
}