diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-04-14 01:08:43 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-04-14 01:08:43 -0700 |
commit | 4faa8afa1856a015a63efb12a466b5fd060c1af5 (patch) | |
tree | 37b0a2c32b99e0662af93bb3c42bb03fb3847b7b | |
parent | 67309809fee4ea1b7b4334d6245788ddea626dcf (diff) |
Combine usage message strings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xfontsel.c | 29 |
1 files changed, 10 insertions, 19 deletions
@@ -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); } |