diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-07 21:58:36 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-07 21:58:36 +0100 |
| commit | 3107b1c1e542a65da2725a4720a40515bdbea324 (patch) | |
| tree | fa4880097b6f304b62a6d8d0cd966aceaa07eedb /FICS | |
| parent | 2f486e199529a456f7dcdc5c9eb5b82c2727fed1 (diff) | |
pmore_file: discard fclose() return
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index e2193ce..127892f 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -622,7 +622,7 @@ pmore_file(int p) return -1; } else if (fseek(fp, parray[p].last_file_byte, SEEK_SET) == -1) { pprintf(p, "Unable to set the file position indicator.\n"); - fclose(fp); + (void) fclose(fp); return -1; } @@ -636,11 +636,11 @@ pmore_file(int p) if (ferror(fp)) { warnx("%s: %s: the error indicator is set", __func__, parray[p].last_file); - fclose(fp); + (void) fclose(fp); return -1; } else if ((parray[p].last_file_byte = ftell(fp)) == -1) { warn("%s: %s: ftell", __func__, parray[p].last_file); - fclose(fp); + (void) fclose(fp); return -1; } else pprintf(p, "Type [next] to see next page.\n"); |
