diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-23 20:50:46 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-23 20:50:46 +0100 |
| commit | 063ea8ba39b566b5f4425e333b2977f976a6b035 (patch) | |
| tree | f63c86e4f8972cd38e6f013e679ef139ebcf3565 | |
| parent | 90e2a9a577b1cda5ebf28a632fc550dd826795c0 (diff) | |
usage: discarded the fprintf() return values
| -rw-r--r-- | FICS/ficsmain.c | 15 |
1 files 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); } |
