summaryrefslogtreecommitdiff
path: root/libpurple/idle.c
diff options
context:
space:
mode:
authorRichard Laager <rlaager@pidgin.im>2008-01-05 18:01:12 +0000
committerRichard Laager <rlaager@pidgin.im>2008-01-05 18:01:12 +0000
commitc5784a3f0309b2a922434b6e60f9448955eae782 (patch)
treef1ee61a7b4ed0b19e7da9b49d9c5e11e167fad4b /libpurple/idle.c
parent4a7dab4e264a1e6b077d2c6b9d5202a6806cd67a (diff)
downloadpidgin-c5784a3f0309b2a922434b6e60f9448955eae782.tar.gz
Squash some compiler warnings, some from my -Wstrict-prototypes fixing.
Diffstat (limited to 'libpurple/idle.c')
-rw-r--r--libpurple/idle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpurple/idle.c b/libpurple/idle.c
index 235ef46859..34129bd836 100644
--- a/libpurple/idle.c
+++ b/libpurple/idle.c
@@ -215,7 +215,7 @@ check_idleness(void)
/*
* 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 @@ check_idleness_timer(void)
{
/* +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 @@ static gboolean _do_purple_idle_touch_cb(gpointer data)
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();