diff libpurple/idle.c @ 22011:76e0463db3aa

Squash some compiler warnings, some from my -Wstrict-prototypes fixing.
author Richard Laager <rlaager@wiktel.com>
date Sat, 05 Jan 2008 18:01:12 +0000
parents c38d72677c8a
children d1b36a8c920a
line wrap: on
line diff
--- a/libpurple/idle.c	Sat Jan 05 17:14:32 2008 +0000
+++ b/libpurple/idle.c	Sat Jan 05 18:01:12 2008 +0000
@@ -215,7 +215,7 @@
 /*
  * Check idle and set the timer to fire at the next idle-worth event 
  */
-static gint
+static gboolean
 check_idleness_timer(void)
 {
 	check_idleness();
@@ -225,7 +225,7 @@
 	{
 		/* +1 for the boundary,
 		 * +1 more for g_timeout_add_seconds rounding. */
-		idle_timer = purple_timeout_add_seconds(time_until_next_idle_event + 2, check_idleness_timer, NULL);
+		idle_timer = purple_timeout_add_seconds(time_until_next_idle_event + 2, (GSourceFunc)check_idleness_timer, NULL);
 	}
 	return FALSE;
 }
@@ -307,7 +307,7 @@
 	int idle_poll_minutes = purple_prefs_get_int("/purple/away/mins_before_away");
 
 	 /* +1 more for g_timeout_add_seconds rounding. */
-	idle_timer = purple_timeout_add_seconds((idle_poll_minutes * 60) + 2, check_idleness_timer, NULL);
+	idle_timer = purple_timeout_add_seconds((idle_poll_minutes * 60) + 2, (GSourceFunc)check_idleness_timer, NULL);
 
 	purple_idle_touch();