aboutsummaryrefslogtreecommitdiff
path: root/apps/xclock/xclock.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-10-01 12:23:16 +0200
committermarha <marha@users.sourceforge.net>2013-10-01 12:28:08 +0200
commit6dd755aa923291db2501cc5c22e409c41a70e3c1 (patch)
treefa88a321afc13657f7687a25d466f49151c9599a /apps/xclock/xclock.c
parenta5391fdea94a7b827069c6f926f83a235076ccb4 (diff)
downloadvcxsrv-6dd755aa923291db2501cc5c22e409c41a70e3c1.tar.gz
vcxsrv-6dd755aa923291db2501cc5c22e409c41a70e3c1.tar.bz2
vcxsrv-6dd755aa923291db2501cc5c22e409c41a70e3c1.zip
Update following packages:
libXpm-3.5.11 libXaw-1.0.12 libXfont-1.4.6 libXrender-0.9.8 xproto-7.0.24 inputproto-2.3 xclock-1.0.7 xhost-1.0.6
Diffstat (limited to 'apps/xclock/xclock.c')
-rw-r--r--apps/xclock/xclock.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/apps/xclock/xclock.c b/apps/xclock/xclock.c
index 5965a8357..2533dede2 100644
--- a/apps/xclock/xclock.c
+++ b/apps/xclock/xclock.c
@@ -100,23 +100,24 @@ static Atom wm_delete_window;
/*
* Report the syntax for calling xclock.
*/
-static void
-Syntax(char *call)
+static void _X_NORETURN
+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
+static void _X_NORETURN
die(Widget w, XtPointer client_data, XtPointer call_data)
{
XCloseDisplay(XtDisplayOfObject(w));