summaryrefslogtreecommitdiff
path: root/tests/test-io-stream-pollable.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-io-stream-pollable.c')
-rw-r--r--tests/test-io-stream-pollable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-io-stream-pollable.c b/tests/test-io-stream-pollable.c
index a543f88..d747f79 100644
--- a/tests/test-io-stream-pollable.c
+++ b/tests/test-io-stream-pollable.c
@@ -107,7 +107,7 @@ read_thread_cb (GInputStream *input_stream, TestIOStreamThreadData *data)
g_pollable_input_stream_create_source (
G_POLLABLE_INPUT_STREAM (input_stream), NULL);
- g_source_set_callback (stream_source, (GSourceFunc) read_stream_cb,
+ g_source_set_callback (stream_source, G_SOURCE_FUNC (read_stream_cb),
data, NULL);
g_source_attach (stream_source, main_context);
g_source_unref (stream_source);