From 36ffc5e0eb50fdda93af3dd7dc3899622e80d3be Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 6 Apr 2013 09:45:22 -0700 Subject: Combine usage message strings Signed-off-by: Alan Coopersmith --- xbacklight.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/xbacklight.c b/xbacklight.c index 2189095..0614f03 100644 --- a/xbacklight.c +++ b/xbacklight.c @@ -40,17 +40,16 @@ static xcb_atom_t backlight, backlight_new, backlight_legacy; static void usage (void) { - fprintf(stderr, "usage: %s [options]\n", program_name); - fprintf(stderr, " where options are:\n"); - fprintf(stderr, " -display or -d \n"); - fprintf(stderr, " -help\n"); - fprintf(stderr, " -set or = \n"); - fprintf(stderr, " -inc or + \n"); - fprintf(stderr, " -dec or - \n"); - fprintf(stderr, " -get\n"); - fprintf(stderr, " -time \n"); - fprintf(stderr, " -steps \n"); - /*NOTREACHED*/ + fprintf(stderr, "usage: %s [options]\n%s", program_name, + " where options are:\n" + " -display or -d \n" + " -help\n" + " -set or = \n" + " -inc or + \n" + " -dec or - \n" + " -get\n" + " -time \n" + " -steps \n"); exit (1); } -- cgit v1.2.3