aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-03-24 21:35:27 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2026-03-24 21:35:27 +0100
commitd5232cc3a970286af8cad94a98502867cb435a78 (patch)
tree10c2b4967d0b4defb2b09485e0fded9f7ad0f1ea /FICS
parent948ae512a437aaa39c3ce0327d3b73c168e2667f (diff)
Discarded fprintf() return values -- writing to stderr is ok
Diffstat (limited to 'FICS')
-rw-r--r--FICS/comproc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c
index d9b7d95..6e4939d 100644
--- a/FICS/comproc.c
+++ b/FICS/comproc.c
@@ -173,7 +173,7 @@ com_news(int p, param_list param)
snprintf(filename, sizeof filename, "%s/newnews.index", news_dir);
if ((fp = fopen(filename, "r")) == NULL) {
- fprintf(stderr, "Can\'t find news index.\n");
+ (void) fprintf(stderr, "Can\'t find news index.\n");
return COM_OK;
}
@@ -784,8 +784,9 @@ plogins(int p, char *fname)
while (!feof(fp)) {
if (fscanf(fp, v_scan_fmt, &inout, loginName, &lval,
&registered, ipstr) != 5) {
- fprintf(stderr, "FICS: Error in login info format. "
- "%s\n", fname);
+ (void) fprintf(stderr, "FICS: "
+ "Error in login info format. %s\n",
+ fname);
fclose(fp);
return COM_OK;
}
@@ -982,7 +983,7 @@ who_verbose(int p, int num, int plist[])
too_long = (ret < 0 || (size_t)ret >= sizeof tmp);
if (too_long) {
- fprintf(stderr, "FICS: %s: warning: "
+ (void) fprintf(stderr, "FICS: %s: warning: "
"snprintf truncated\n", __func__);
}
}