diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-12 17:32:36 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-01-12 17:32:36 -0200 |
commit | b86d1b71813cfa582aa28356ee6a2196a67ba8d4 (patch) | |
tree | 95aa0a4af36e5736d93814d29709e09bfaf8e7b1 /editres.c | |
parent | 82c17cd232a016f0c552f38453774abfb0bf17fe (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 'editres.c')
-rw-r--r-- | editres.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -65,7 +65,7 @@ AppResources global_resources; static void Syntax ( XtAppContext app_con, char *call ); -String fallback_resources[] = { +static String fallback_resources[] = { NULL, }; @@ -87,9 +87,7 @@ static XtResource editres_resources[] = { Atom wm_delete_window; int -main(argc, argv) -int argc; -char **argv; +main(int argc, char **argv) { XtAppContext app_con; @@ -140,9 +138,7 @@ char **argv; */ static void -Syntax(app_con, call) -XtAppContext app_con; -char *call; +Syntax(XtAppContext app_con, char *call) { XtDestroyApplicationContext(app_con); fprintf(stderr, "Usage: %s\n", call); |