aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-12 23:17:22 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-12 23:17:22 +0100
commitdf3ae9e352668753619cdc0d2d1ce95f5d5c8518 (patch)
tree3244a76e2c60bc7398afb96b379790080e57c7d8
parenta73a08bd79728e632758abcaee36481e01cd835e (diff)
Reformatted usage()
-rw-r--r--FICS/ficsmain.c15
1 files changed, 9 insertions, 6 deletions
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