From 443095c196da47cf62fa0e66dc9dea5828aad02f Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 14 Mar 2026 13:38:14 +0100 Subject: Discarded function return values --- FICS/playerdb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'FICS/playerdb.c') diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 842306b..e608ccb 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -1849,18 +1849,20 @@ player_pend_print(int p, pending *pend) if (p == pend->whofrom) { (void)strlcpy(outstr, "You are offering ", sizeof outstr); } else { - snprintf(outstr, sizeof outstr, "%s is offering ", + (void)snprintf(outstr, sizeof outstr, "%s is offering ", parray[pend->whofrom].name); } if (p == pend->whoto) { /* null */; } else { - snprintf(tmp, sizeof tmp, "%s ", parray[pend->whoto].name); + (void)snprintf(tmp, sizeof tmp, "%s ", + parray[pend->whoto].name); } if (strlcat(outstr, tmp, sizeof outstr) >= sizeof outstr) { - fprintf(stderr, "FICS: %s: warning: strlcat() truncated\n", + (void)fprintf(stderr, "FICS: %s: warning: " + "strlcat() truncated\n", __func__); } -- cgit v1.2.3