shared: use G_SOURCE_FUNC() macro in "shared/nm-test-utils-impl.c"

This commit is contained in:
Thomas Haller 2020-01-01 09:49:33 +01:00
parent 38323216f5
commit 78c4bc58c7

View file

@ -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);