diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-13 20:54:08 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-13 20:54:08 -0200 |
commit | b88273dcdd403e058888fbcdf4a0470854045179 (patch) | |
tree | 72840a1d738f764ea54eba9bbecab4507cd4b2e3 /xbiff.c | |
parent | 4882f2fc26a5976fe7744286932263c83f1c61dc (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 'xbiff.c')
-rw-r--r-- | xbiff.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -38,7 +38,7 @@ from the X Consortium. #include "Mailbox.h" #include <X11/Xaw/Cardinals.h> -const char *ProgramName; +static const char *ProgramName; static XrmOptionDescRec options[] = { { "-update", "*mailbox.update", XrmoptionSepArg, (caddr_t) NULL }, @@ -49,11 +49,7 @@ static XrmOptionDescRec options[] = { static Atom wm_delete_window; -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) { if (event->type == ClientMessage && event->xclient.data.l[0] != wm_delete_window) { @@ -68,7 +64,7 @@ static XtActionsRec xbiff_actions[] = { { "quit", quit }, }; -static void Usage () +static void Usage (void) { static const char *help_message[] = { "where options include:", @@ -93,9 +89,7 @@ NULL}; int -main (argc, argv) - int argc; - char **argv; +main (int argc, char **argv) { XtAppContext xtcontext; Widget toplevel; |