summaryrefslogtreecommitdiff
path: root/dbus-gmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus-gmain.c')
-rw-r--r--dbus-gmain.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dbus-gmain.c b/dbus-gmain.c
index 06a480c..ee4e8ca 100644
--- a/dbus-gmain.c
+++ b/dbus-gmain.c
@@ -258,8 +258,9 @@ connection_setup_add_watch (ConnectionSetup *cs,
channel = g_io_channel_unix_new (dbus_watch_get_unix_fd (watch));
handler->source = g_io_create_watch (channel, condition);
- g_source_set_callback (handler->source, (GSourceFunc) io_handler_dispatch, handler,
- io_handler_source_finalized);
+ g_source_set_callback (handler->source,
+ (GSourceFunc) (void (*) (void)) io_handler_dispatch,
+ handler, io_handler_source_finalized);
g_source_attach (handler->source, cs->context);
cs->ios = g_slist_prepend (cs->ios, handler);