From 11e13bdf2bdc6cdc7f7d27427016eaf8c9ad48c3 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Mon, 12 Jan 2009 18:53:19 -0200 Subject: Ansification and compile warning fixes. This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings. --- oclock.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'oclock.c') diff --git a/oclock.c b/oclock.c index cb2fc8d..92db51e 100644 --- a/oclock.c +++ b/oclock.c @@ -54,24 +54,20 @@ static XtActionsRec actions[] = { static Atom wm_delete_window; -static void die(w, client_data, call_data) - Widget w; - XtPointer client_data, call_data; +static void die(Widget w, XtPointer client_data, XtPointer call_data) { XCloseDisplay(XtDisplay(w)); exit(0); } -static void save(w, client_data, call_data) - Widget w; - XtPointer client_data, call_data; +static void save(Widget w, XtPointer client_data, XtPointer call_data) { return; /* stateless */ } /* Exit with message describing command line format */ -static void usage() +static void usage(void) { fprintf(stderr, "usage: oclock\n"); @@ -153,11 +149,7 @@ main(int argc, char *argv[]) exit(0); } -static void quit(w, event, params, num_params) - Widget w; - XEvent *event; - String *params; - Cardinal *num_params; +static void quit(Widget w, XEvent *event, String *params, Cardinal *num_params) { Arg arg; -- cgit v1.2.3