From 3107b1c1e542a65da2725a4720a40515bdbea324 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 7 Mar 2026 21:58:36 +0100 Subject: pmore_file: discard fclose() return --- FICS/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FICS') 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"); -- cgit v1.2.3