summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-24 10:16:40 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-24 10:16:40 -0700
commit3643c69e12c2294f5eafae06d10ce7f76c5daad9 (patch)
treedbf31947a6122e599315fd5498c969bf4d4ec27b
parent3a0e14080f81fbfb7b2df2fc8a775b2dc8506cb3 (diff)
Combine usage message fprintfs into a single call
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xgamma.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/xgamma.c b/xgamma.c
index 54eeec7..b334af8 100644
--- a/xgamma.c
+++ b/xgamma.c
@@ -46,17 +46,16 @@ static int EventBase, ErrorBase;
static void _X_NORETURN
Syntax(void)
{
- fprintf (stderr, "usage: %s [-options]\n\n",
- ProgramName);
- fprintf (stderr, "where the available options are:\n");
- fprintf (stderr, " -display host:dpy or -d\n");
- fprintf (stderr, " -quiet or -q\n");
- fprintf (stderr, " -screen or -s\n");
- fprintf (stderr, " -gamma f.f Gamma Value\n");
- fprintf (stderr, " -rgamma f.f Red Gamma Value\n");
- fprintf (stderr, " -ggamma f.f Green Gamma Value\n");
- fprintf (stderr, " -bgamma f.f Blue Gamma Value\n\n");
- fprintf (stderr, "If no gamma is specified, returns the current setting\n");
+ fprintf (stderr, "usage: %s [-options]\n\n%s", ProgramName,
+ "where the available options are:\n"
+ " -display host:dpy or -d\n"
+ " -quiet or -q\n"
+ " -screen or -s\n"
+ " -gamma f.f Gamma Value\n"
+ " -rgamma f.f Red Gamma Value\n"
+ " -ggamma f.f Green Gamma Value\n"
+ " -bgamma f.f Blue Gamma Value\n\n"
+ "If no gamma is specified, returns the current setting\n");
exit (1);
}