diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-19 22:41:57 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-19 22:41:57 +0100 |
| commit | 614521f751919db733197152f9d43dc1d36e0cb8 (patch) | |
| tree | ccda3421c9f85a688cddd6ec454055961943f1d8 /FICS | |
| parent | 328b651c087b1e7a2de922c863ad70bbfb8d8608 (diff) | |
Log fclose() errors
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/lists.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FICS/lists.c b/FICS/lists.c index 9734cd7..6eb09c1 100644 --- a/FICS/lists.c +++ b/FICS/lists.c @@ -103,7 +103,8 @@ list_find(int p, enum ListWhich l) tempList->member[count++] = xstrdup(listmember); } - fclose(fp); + if (fclose(fp) != 0) + warn("%s: error: fclose", __func__); } tempList->which = l; @@ -461,7 +462,8 @@ list_addsub(int p, char *list, char *who, int addsub) if (fprintf(fp, "%s\n", gl->member[i]) < 0) warnx("%s: error: fprintf", __func__); } - fclose(fp); + if (fclose(fp) != 0) + warn("%s: error: fclose", __func__); } } |
