From fe643332c824fdd0e4f8243e5c1e67c6370d0e5a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 28 Jan 2023 10:26:33 -0800 Subject: Combine usage message into a single string Signed-off-by: Alan Coopersmith --- xbiff.c | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'xbiff.c') diff --git a/xbiff.c b/xbiff.c index dbf90eb..46f4550 100644 --- a/xbiff.c +++ b/xbiff.c @@ -70,24 +70,20 @@ static XtActionsRec xbiff_actions[] = { static void Usage (void) { - static const char *help_message[] = { -"where options include:", -" -display host:dpy X server to contact", -" -geometry geom size of mailbox", -" -file file file to watch", -" -update seconds how often to check for mail", -" -volume percentage how loud to ring the bell", -" -bg color background color", -" -fg color foreground color", -" -rv reverse video", -" -shape shape the window", -NULL}; - const char **cpp; + const char *help_message = +"where options include:\n" +" -display host:dpy X server to contact\n" +" -geometry geom size of mailbox\n" +" -file file file to watch\n" +" -update seconds how often to check for mail\n" +" -volume percentage how loud to ring the bell\n" +" -bg color background color\n" +" -fg color foreground color\n" +" -rv reverse video\n" +" -shape shape the window\n"; fprintf (stderr, "usage: %s [-options ...]\n", ProgramName); - for (cpp = help_message; *cpp; cpp++) - fprintf (stderr, "%s\n", *cpp); - fprintf (stderr, "\n"); + fprintf (stderr, "%s\n", help_message); exit (1); } -- cgit v1.2.3