aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-04-25 17:11:43 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2026-04-25 17:11:43 +0200
commit2c2257d422333015e0bb886a11cd6e81e29ad9ca (patch)
tree0261ab1f7b7b73dca9941de98ea80bf6b919a642 /FICS
parent55332f072b158d86ffe5a2f3b42532f4e61d42ad (diff)
Discarded fclose() return values
Diffstat (limited to 'FICS')
-rw-r--r--FICS/command.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/FICS/command.c b/FICS/command.c
index 0d0f9f2..63a08f3 100644
--- a/FICS/command.c
+++ b/FICS/command.c
@@ -794,11 +794,11 @@ check_news(int p, int admin)
if (fgets(junk, sizeof junk, fp) == NULL) {
warnx("%s: fgets() error", __func__);
- fclose(fp);
+ (void) fclose(fp);
return;
} else if (sscanf(junk, v_scan_fmt, &lval, count) != 2) {
warnx("%s: sscanf() error", __func__);
- fclose(fp);
+ (void) fclose(fp);
return;
}
@@ -844,11 +844,11 @@ check_news(int p, int admin)
if (fgets(junk, sizeof junk, fp) == NULL) {
warnx("%s: fgets() error", __func__);
- fclose(fp);
+ (void) fclose(fp);
return;
} else if (sscanf(junk, v_scan_fmt, &lval, count) != 2) {
warnx("%s: sscanf() error", __func__);
- fclose(fp);
+ (void) fclose(fp);
return;
}
@@ -1348,9 +1348,9 @@ commands_init(void)
clean_up:
if (fp)
- fclose(fp);
+ (void) fclose(fp);
if (afp)
- fclose(afp);
+ (void) fclose(afp);
}
/* Need to save rated games */