From 4faa8afa1856a015a63efb12a466b5fd060c1af5 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 14 Apr 2012 01:08:43 -0700 Subject: Combine usage message strings Signed-off-by: Alan Coopersmith --- xfontsel.c | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/xfontsel.c b/xfontsel.c index cf334e4..c885d71 100644 --- a/xfontsel.c +++ b/xfontsel.c @@ -148,27 +148,18 @@ static XrmOptionDescRec options[] = { {"-scaled", "scaledFonts", XrmoptionNoArg, "True"}, }; -static void Syntax(char *call) +static void Syntax(const char *call) { - fprintf (stderr, "usage: %s [-options ...] -fn font\n\n", call); - fprintf (stderr, "where options include:\n"); - fprintf (stderr, - " -display dpy X server to contact\n"); - fprintf (stderr, - " -geometry geom size and location of window\n"); - fprintf (stderr, - " -pattern fontspec font name pattern to match against\n"); - fprintf (stderr, - " -print print selected font name on exit\n"); - fprintf (stderr, - " -sample string sample text to use for 1-byte fonts\n"); - fprintf (stderr, - " -sample16 string sample text to use for 2-byte fonts\n"); - fprintf (stderr, - " -sampleUCS string sample text to use for ISO10646 fonts\n"); - fprintf (stderr, + fprintf (stderr, "usage: %s [-options ...] -fn font\n\n%s\n", call, + "where options include:\n" + " -display dpy X server to contact\n" + " -geometry geom size and location of window\n" + " -pattern fontspec font name pattern to match against\n" + " -print print selected font name on exit\n" + " -sample string sample text to use for 1-byte fonts\n" + " -sample16 string sample text to use for 2-byte fonts\n" + " -sampleUCS string sample text to use for ISO10646 fonts\n" " -scaled use scaled instances of fonts\n"); - fprintf (stderr, "\n"); exit (1); } -- cgit v1.2.3