diff options
Diffstat (limited to 'FICS/makerank.c')
| -rw-r--r-- | FICS/makerank.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c index 1a0dd01..3bc4d93 100644 --- a/FICS/makerank.c +++ b/FICS/makerank.c @@ -150,7 +150,8 @@ GetPlayerInfo(char *fileName, ENTRY *e) } while (!done && !feof(fp)); } - fclose(fp); + if (fclose(fp) != 0) + warn("%s: error closing file pointer", __func__); return (done ? 1 : 0); } @@ -329,7 +330,9 @@ makerank(void) sortme[i]->r[rtype].num, sortme[i]->computer); } - fclose(fp); + + if (fclose(fp) != 0) + warn("%s: error closing file pointer", __func__); free(sortme); } } |
