diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-12 18:53:19 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-12 18:53:19 -0200 |
commit | 11e13bdf2bdc6cdc7f7d27427016eaf8c9ad48c3 (patch) | |
tree | 36961b4b43bcb098d72a983e655971f019118791 /oclock.c | |
parent | 8509d5cc01607e19590571b4e0d941b0e5900052 (diff) |
Ansification and compile warning fixes.
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects
make distcheck and all gcc 4.3 and sparse warnings.
Diffstat (limited to 'oclock.c')
-rw-r--r-- | oclock.c | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -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; |