diff finch/libgnt/gntmain.c @ 22007:c38d72677c8a

Probe for -Wstrict-prototypes to get some more warnings. I then cleaned up the existing warnings. I removed a handful of dead code and cleaned up a couple of things that I stumbled across.
author Richard Laager <rlaager@wiktel.com>
date Thu, 03 Jan 2008 04:57:40 +0000
parents ea56d9386081
children 76e0463db3aa
line wrap: on
line diff
--- a/finch/libgnt/gntmain.c	Wed Jan 02 22:15:06 2008 +0000
+++ b/finch/libgnt/gntmain.c	Thu Jan 03 04:57:40 2008 +0000
@@ -72,7 +72,7 @@
 
 static void setup_io(void);
 
-static gboolean refresh_screen();
+static gboolean refresh_screen(void);
 
 static GntWM *wm;
 static GntClipboard *clipboard;
@@ -326,7 +326,7 @@
 }
 
 static gboolean
-refresh_screen()
+refresh_screen(void)
 {
 	gnt_bindable_perform_action_named(GNT_BINDABLE(wm), "refresh-screen", NULL);
 	return FALSE;
@@ -363,7 +363,7 @@
 }
 
 static void
-ask_before_exit()
+ask_before_exit(void)
 {
 	static GntWidget *win = NULL;
 	GntWidget *bbox, *button;
@@ -430,7 +430,7 @@
 }
 
 static void
-init_wm()
+init_wm(void)
 {
 	const char *name = gnt_style_get(GNT_STYLE_WM);
 	gpointer handle;
@@ -614,7 +614,7 @@
 	gnt_wm_update_window(wm, widget);
 }
 
-void gnt_register_action(const char *label, void (*callback)())
+void gnt_register_action(const char *label, void (*callback)(void))
 {
 	GntAction *action = g_new0(GntAction, 1);
 	action->label = g_strdup(label);