summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-01-01 09:49:33 +0100
committerThomas Haller <thaller@redhat.com>2020-01-13 15:46:04 +0100
commit78c4bc58c79fe2764897fa0dfdcf174dd3676b96 (patch)
treeaa907d56c09c3e8fa444fad2c08d4cb23c2e4ded
parent38323216f57997fede010f78435d284e85546a2b (diff)
downloadNetworkManager-78c4bc58c79fe2764897fa0dfdcf174dd3676b96.tar.gz
shared: use G_SOURCE_FUNC() macro in "shared/nm-test-utils-impl.c"
-rw-r--r--shared/nm-test-utils-impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/nm-test-utils-impl.c b/shared/nm-test-utils-impl.c
index 0805d0b946..43176f4c7e 100644
--- a/shared/nm-test-utils-impl.c
+++ b/shared/nm-test-utils-impl.c
@@ -127,7 +127,7 @@ nmtstc_service_init (void)
g_source_attach (timeout_source, context);
child_source = g_child_watch_source_new (info->pid);
- g_source_set_callback (child_source, (GSourceFunc)(void (*) (void)) _service_init_wait_child_wait, &data, NULL);
+ g_source_set_callback (child_source, G_SOURCE_FUNC (_service_init_wait_child_wait), &data, NULL);
g_source_attach (child_source, context);
had_timeout = !nmtst_main_loop_run (data.mainloop, 30000);