summaryrefslogtreecommitdiff
path: root/oclock.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:47 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:47 +0000
commit4741472b2bec4c3480b2b60b0da72c911829d405 (patch)
treebd808426b18c9bad3411e0f1065f52fcb89462b1 /oclock.c
parentc4bc1693ae8bbc4bff3891b1d06b110025c23579 (diff)
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'oclock.c')
-rw-r--r--oclock.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/oclock.c b/oclock.c
index 32bc912..1eb86e6 100644
--- a/oclock.c
+++ b/oclock.c
@@ -23,6 +23,7 @@ Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+/* $XFree86: xc/programs/oclock/oclock.c,v 1.7 2001/12/14 20:01:00 dawes Exp $ */
#include <X11/Intrinsic.h>
#include <X11/Xatom.h>
@@ -31,6 +32,7 @@ in this Software without prior written authorization from The Open Group.
#include <X11/Xmu/Editres.h>
#include "Clock.h"
#include <stdio.h>
+#include <stdlib.h>
#ifdef XKB
#include <X11/extensions/XKBbells.h>
@@ -39,8 +41,12 @@ in this Software without prior written authorization from The Open Group.
#include "oclock.bit"
#include "oclmask.bit"
-extern void exit();
-static void quit();
+static void die ( Widget w, XtPointer client_data, XtPointer call_data );
+static void save ( Widget w, XtPointer client_data, XtPointer call_data );
+static void usage ( void );
+static void quit ( Widget w, XEvent *event, String *params,
+ Cardinal *num_params );
+
static XtActionsRec actions[] = {
{"quit", quit}
@@ -65,7 +71,7 @@ static void save(w, client_data, call_data)
/* Exit with message describing command line format */
-void usage()
+static void usage()
{
fprintf(stderr,
"usage: oclock\n");
@@ -97,9 +103,8 @@ static XrmOptionDescRec options[] = {
{"-transparent","*clock.transparent", XrmoptionNoArg, "TRUE"},
};
-void main(argc, argv)
- int argc;
- char **argv;
+int
+main(int argc, char *argv[])
{
XtAppContext xtcontext;
Widget toplevel;
@@ -146,6 +151,7 @@ void main(argc, argv)
_XEditResCheckMessages, NULL);
XtAppMainLoop(xtcontext);
+ exit(0);
}
static void quit(w, event, params, num_params)