From 44e36b2c93d5c7490c65ecd0927994fd1a4a4d2d Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 4 Apr 2026 02:16:45 +0200 Subject: com_stats_andify: discarded function return values --- FICS/comproc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FICS/comproc.c b/FICS/comproc.c index 77c8f65..619bd37 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -401,15 +401,15 @@ com_stats_andify(int *numbers, int p_howmany, char *dest, size_t dsize) } while (p_howmany--) { - snprintf(tmp, sizeof tmp, "%d", numbers[p_howmany]); - strlcat(dest, tmp, dsize); + (void) snprintf(tmp, sizeof tmp, "%d", numbers[p_howmany]); + (void) strlcat(dest, tmp, dsize); if (p_howmany > 1) - strlcpy(tmp, ", ", sizeof tmp); + (void) strlcpy(tmp, ", ", sizeof tmp); else if (p_howmany == 1) - strlcpy(tmp, " and ", sizeof tmp); + (void) strlcpy(tmp, " and ", sizeof tmp); else - strlcpy(tmp, ".\n", sizeof tmp); + (void) strlcpy(tmp, ".\n", sizeof tmp); if (strlcat(dest, tmp, dsize) >= dsize) { (void) fprintf(stderr, "FICS: %s: warning: strlcat() " -- cgit v1.2.3