summaryrefslogtreecommitdiff
path: root/editres.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-12 17:32:36 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-12 17:32:36 -0200
commitb86d1b71813cfa582aa28356ee6a2196a67ba8d4 (patch)
tree95aa0a4af36e5736d93814d29709e09bfaf8e7b1 /editres.c
parent82c17cd232a016f0c552f38453774abfb0bf17fe (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.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/editres.c b/editres.c
index d8d436f..71e1765 100644
--- a/editres.c
+++ b/editres.c
@@ -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);