diff options
Diffstat (limited to 'FICS/lists.c')
| -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__); } } |
