summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-04-06 09:45:22 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-04-06 09:58:37 -0700
commit36ffc5e0eb50fdda93af3dd7dc3899622e80d3be (patch)
tree8820e3d36c3e699889a51d91e56fdfa1d2e88d8e
parentcc2a24b51637e8f21c9c0aed73394db67a965b62 (diff)
Combine usage message strings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xbacklight.c21
1 files 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 <display> or -d <display>\n");
- fprintf(stderr, " -help\n");
- fprintf(stderr, " -set <percentage> or = <percentage>\n");
- fprintf(stderr, " -inc <percentage> or + <percentage>\n");
- fprintf(stderr, " -dec <percentage> or - <percentage>\n");
- fprintf(stderr, " -get\n");
- fprintf(stderr, " -time <fade time in milliseconds>\n");
- fprintf(stderr, " -steps <number of steps in fade>\n");
- /*NOTREACHED*/
+ fprintf(stderr, "usage: %s [options]\n%s", program_name,
+ " where options are:\n"
+ " -display <display> or -d <display>\n"
+ " -help\n"
+ " -set <percentage> or = <percentage>\n"
+ " -inc <percentage> or + <percentage>\n"
+ " -dec <percentage> or - <percentage>\n"
+ " -get\n"
+ " -time <fade time in milliseconds>\n"
+ " -steps <number of steps in fade>\n");
exit (1);
}