diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-24 21:28:43 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-24 21:28:43 +0100 |
| commit | 948ae512a437aaa39c3ce0327d3b73c168e2667f (patch) | |
| tree | 994c3527e1c9b9bc7997c16b5ee41fdc6addb7f1 | |
| parent | d0787f963e3d7d918bac3ee1e072f233b070fb5d (diff) | |
Log fclose() errors
| -rw-r--r-- | FICS/eco.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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); |
