summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-23 19:35:47 (GMT)
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-23 19:35:47 (GMT)
commit7a43915d29ba56cd11d92c89720153fba3e92be4 (patch)
tree1dbc2b727a189f57340448ac085ee6f4781f285c
parentd828ec2c209ea031891cbc7ab9c9d2f6832ebc4d (diff)
downloadxlsatoms-7a43915d29ba56cd11d92c89720153fba3e92be4.zip
xlsatoms-7a43915d29ba56cd11d92c89720153fba3e92be4.tar.gz
xlsatoms-7a43915d29ba56cd11d92c89720153fba3e92be4.tar.bz2
Combine usage message into single string/callupstreammaster
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xlsatoms.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/xlsatoms.c b/xlsatoms.c
index c8d62aa..eb4e21d 100644
--- a/xlsatoms.c
+++ b/xlsatoms.c
@@ -49,17 +49,12 @@ static void list_atoms ( xcb_connection_t *c, const char *format, int mask,
static void
usage(void)
{
- fprintf (stderr, "usage: %s [-options...]\n\n", ProgramName);
- fprintf (stderr, "where options include:\n");
- fprintf (stderr,
- " -display dpy X server to which to connect\n");
- fprintf (stderr,
- " -format string printf-style format to use\n");
- fprintf (stderr,
- " -range [num]-[num] atom values to list\n");
- fprintf (stderr,
+ fprintf (stderr, "usage: %s [-options...]\n\n%s\n", ProgramName,
+ "where options include:\n"
+ " -display dpy X server to which to connect\n"
+ " -format string printf-style format to use\n"
+ " -range [num]-[num] atom values to list\n"
" -name string name of single atom to print\n");
- putc ('\n', stderr);
exit (1);
}