From df3ae9e352668753619cdc0d2d1ce95f5d5c8518 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 12 Dec 2023 23:17:22 +0100 Subject: Reformatted usage() --- FICS/ficsmain.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'FICS/ficsmain.c') diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c index b246e6a..fceee55 100644 --- a/FICS/ficsmain.c +++ b/FICS/ficsmain.c @@ -51,13 +51,16 @@ PUBLIC int withConsole; void player_array_init(void); /* for warning */ -PRIVATE void usage(char *progname) +PRIVATE void +usage(char *progname) { - fprintf(stderr, "Usage: %s [-p port] [-C] [-h]\n", progname); - fprintf(stderr, "\t\t-p port\t\tSpecify port. (Default=5000)\n"); - fprintf(stderr, "\t\t-C\t\tStart with console player connected to stdin.\n"); - fprintf(stderr, "\t\t-h\t\tDisplay this information.\n"); - exit(1); + fprintf(stderr, "Usage: %s [-p port] [-C] [-h]\n", progname); + 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 " + "to stdin.\n"); + fprintf(stderr, "\t\t-h\t\tDisplay this information.\n"); + exit(1); } PRIVATE void -- cgit v1.2.3