diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-04-04 19:31:45 +0200 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-04-04 19:31:45 +0200 |
| commit | 95aa1717b03294a2a9d3b7c308590be8d1c0052b (patch) | |
| tree | 418f1c0a2b766c4c92b720a420606c93b75610ee | |
| parent | b3b96e2ef14c3c6feed693aa49375e3c7fff19df (diff) | |
com_stats: discarded function return values
| -rw-r--r-- | FICS/comproc.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c index 9f60e0f..cdfc534 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -471,22 +471,24 @@ com_stats(int p, param_list param) connected = 1; } - snprintf(line, sizeof line, "\nStatistics for %-11s ", parray[p1].name); + (void) snprintf(line, sizeof line, "\nStatistics for %-11s ", + parray[p1].name); if (connected && parray[p1].status == PLAYER_PROMPT) { - snprintf(tmp, sizeof tmp, "On for: %s", + (void) snprintf(tmp, sizeof tmp, "On for: %s", hms_desc(player_ontime(p1))); - strlcat(line, tmp, sizeof line); - snprintf(tmp, sizeof tmp, " Idle: %s\n", + (void) strlcat(line, tmp, sizeof line); + (void) snprintf(tmp, sizeof tmp, " Idle: %s\n", hms_desc(player_idle(p1))); } else { time_t last; if ((last = player_lastdisconnect(p1)) != 0) { - snprintf(tmp, sizeof tmp, "(Last disconnected %s):\n", + (void) snprintf(tmp, sizeof tmp, + "(Last disconnected %s):\n", strltime(&last)); } else - strlcpy(tmp, "(Never connected.)\n", sizeof tmp); + (void) strlcpy(tmp, "(Never connected.)\n", sizeof tmp); } strlcat(line, tmp, sizeof line); |
