diff options
author | Richard Laager <rlaager@pidgin.im> | 2008-01-05 18:01:12 +0000 |
---|---|---|
committer | Richard Laager <rlaager@pidgin.im> | 2008-01-05 18:01:12 +0000 |
commit | c5784a3f0309b2a922434b6e60f9448955eae782 (patch) | |
tree | f1ee61a7b4ed0b19e7da9b49d9c5e11e167fad4b /libpurple/idle.c | |
parent | 4a7dab4e264a1e6b077d2c6b9d5202a6806cd67a (diff) | |
download | pidgin-c5784a3f0309b2a922434b6e60f9448955eae782.tar.gz |
Squash some compiler warnings, some from my -Wstrict-prototypes fixing.
Diffstat (limited to 'libpurple/idle.c')
-rw-r--r-- | libpurple/idle.c | 6 |
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(); |