From 3643c69e12c2294f5eafae06d10ce7f76c5daad9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 24 May 2014 10:16:40 -0700 Subject: Combine usage message fprintfs into a single call Signed-off-by: Alan Coopersmith --- xgamma.c | 21 ++++++++++----------- 1 file 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); } -- cgit v1.2.3