commit 3107b1c1e542a65da2725a4720a40515bdbea324 from: Markus Uhlin date: Sat Mar 7 20:58:36 2026 UTC pmore_file: discard fclose() return commit - 2f486e199529a456f7dcdc5c9eb5b82c2727fed1 commit + 3107b1c1e542a65da2725a4720a40515bdbea324 blob - e2193cea3b9f034b0f39565a09bfaab3608f0c4b blob + 127892f1ea62ef4a0c22ea0c137bdff16d03da6e --- FICS/utils.c +++ 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");