diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 21:02:55 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 21:07:38 -0700 |
commit | 1ac04613b566ba0dde29a16f3ac409832f32d74e (patch) | |
tree | 85c99550edb7bd7215f5608db22b06bd8878e703 /xclock.c | |
parent | 61f95e11eef3fbfb9060a32233df13c35115a6f3 (diff) |
Combine usage message strings & print them to stderr, not stdout
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xclock.c')
-rw-r--r-- | xclock.c | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -101,19 +101,20 @@ static Atom wm_delete_window; * Report the syntax for calling xclock. */ static void _X_NORETURN -Syntax(char *call) +Syntax(const char *call) { - (void) printf ("Usage: %s [-analog] [-bw <pixels>] [-digital] [-brief]\n", call); - (void) printf (" [-utime] [-strftime <fmt-str>]\n"); - (void) printf (" [-fg <color>] [-bg <color>] [-hd <color>]\n"); - (void) printf (" [-hl <color>] [-bd <color>]\n"); - (void) printf (" [-fn <font_name>] [-help] [-padding <pixels>]\n"); - (void) printf (" [-rv] [-update <seconds>] [-display displayname]\n"); + fprintf (stderr, "Usage: %s %s", call, + "[-analog] [-bw <pixels>] [-digital] [-brief]\n" + " [-utime] [-strftime <fmt-str>]\n" + " [-fg <color>] [-bg <color>] [-hd <color>]\n" + " [-hl <color>] [-bd <color>]\n" + " [-fn <font_name>] [-help] [-padding <pixels>]\n" + " [-rv] [-update <seconds>] [-display displayname]\n" #ifdef XRENDER - (void) printf (" [-[no]render] [-face <face name>] [-sharp]\n"); + " [-[no]render] [-face <face name>] [-sharp]\n" #endif - (void) printf (" [-geometry geom] [-twelve] [-twentyfour]\n\n"); - exit(1); + " [-geometry geom] [-twelve] [-twentyfour]\n\n"); + exit(1); } static void _X_NORETURN |