summaryrefslogtreecommitdiff
path: root/xbiff.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-28 10:26:33 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-28 10:26:33 -0800
commitfe643332c824fdd0e4f8243e5c1e67c6370d0e5a (patch)
tree3cb0fd3f5e55136c292a145fb128f98a52aa06b3 /xbiff.c
parentffbfe65382c8f267139b87630976700c0e80b435 (diff)
Combine usage message into a single string
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xbiff.c')
-rw-r--r--xbiff.c28
1 files changed, 12 insertions, 16 deletions
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);
}