aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/eco.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-03-24 21:28:43 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2026-03-24 21:28:43 +0100
commit948ae512a437aaa39c3ce0327d3b73c168e2667f (patch)
tree994c3527e1c9b9bc7997c16b5ee41fdc6addb7f1 /FICS/eco.c
parentd0787f963e3d7d918bac3ee1e072f233b070fb5d (diff)
Log fclose() errors
Diffstat (limited to 'FICS/eco.c')
-rw-r--r--FICS/eco.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/FICS/eco.c b/FICS/eco.c
index 858bf75..e1b28a5 100644
--- a/FICS/eco.c
+++ b/FICS/eco.c
@@ -189,7 +189,8 @@ ECO_init(void)
++i;
}
- fclose(fp);
+ if (fclose(fp) != 0)
+ warn("%s: error: fclose", __func__);
ECO_book[i] = NULL;
(void) fprintf(stderr, "%d entries in ECO book\n", i);
@@ -263,7 +264,8 @@ NIC_init(void)
++i;
}
- fclose(fp);
+ if (fclose(fp) != 0)
+ warn("%s: error: fclose", __func__);
NIC_book[i] = NULL;
(void) fprintf(stderr, "%d entries in NIC book\n", i);
@@ -330,7 +332,8 @@ LONG_init(void)
++i;
}
- fclose(fp);
+ if (fclose(fp) != 0)
+ warn("%s: error: fclose", __func__);
LONG_book[i] = NULL;
(void) fprintf(stderr, "%d entries in LONG book\n", i);