From 063ea8ba39b566b5f4425e333b2977f976a6b035 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 23 Mar 2026 20:50:46 +0100 Subject: usage: discarded the fprintf() return values --- FICS/ficsmain.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c index c79008c..1c0aa6b 100644 --- a/FICS/ficsmain.c +++ b/FICS/ficsmain.c @@ -266,15 +266,16 @@ main_event_loop(void) PRIVATE __dead void usage(char *progname) { - fprintf(stderr, "Usage: %s [-p port] [-C] [-dhlv]\n", progname); - fprintf(stderr, "\t\t-p port\t\tSpecify port. (Default=%d)\n", + (void)fprintf(stderr, "Usage: %s [-p port] [-C] [-dhlv]\n", progname); + (void)fprintf(stderr, "\t\t-p port\t\tSpecify port. (Default=%d)\n", DEFAULT_PORT); - fprintf(stderr, "\t\t-C\t\tStart with console player connected " + (void)fprintf(stderr, "\t\t-C\t\tStart with console player connected " "to stdin.\n"); - fprintf(stderr, "\t\t-d\t\tRun in the background.\n"); - fprintf(stderr, "\t\t-h\t\tDisplay this information.\n"); - fprintf(stderr, "\t\t-l\t\tDisplay the legal notice and exit.\n"); - fprintf(stderr, "\t\t-v\t\tDisplay version.\n"); + (void)fprintf(stderr, "\t\t-d\t\tRun in the background.\n"); + (void)fprintf(stderr, "\t\t-h\t\tDisplay this information.\n"); + (void)fprintf(stderr, "\t\t-l\t\tDisplay the legal notice and exit.\n"); + (void)fprintf(stderr, "\t\t-v\t\tDisplay version.\n"); + exit(EXIT_FAILURE); } -- cgit v1.2.3