From cacf569a9a95ea39c78b124987bf4dae72557f27 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 31 Aug 2020 16:41:56 +0200 Subject: Fix deprecated symbols and build warnings --- tests/test-service.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/test-service.cc') diff --git a/tests/test-service.cc b/tests/test-service.cc index aad454a..196419b 100644 --- a/tests/test-service.cc +++ b/tests/test-service.cc @@ -24,6 +24,13 @@ with this program. If not, see . #include "backend-mock-guest.h" #include "backend-mock-actions.h" +gboolean onMainLoopQuit(gpointer pUserData) +{ + g_main_loop_quit((GMainLoop*)pUserData); + + return FALSE; +} + /*** **** ***/ @@ -169,7 +176,7 @@ class ServiceTest: public GTestDBusFixture G_BUS_NAME_WATCHER_FLAGS_NONE, on_name_appeared, // quits the loop NULL, this, NULL); - const guint timer_id = g_timeout_add_seconds (TIME_LIMIT_SEC, (GSourceFunc)g_main_loop_quit, loop); + const guint timer_id = g_timeout_add_seconds(TIME_LIMIT_SEC, onMainLoopQuit, loop); g_main_loop_run (loop); g_source_remove (timer_id); g_bus_unwatch_name (watch_id); -- cgit v1.2.3