From cd78667f5baa22ff64eec87dcef6bafd868c070c Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 24 Aug 2020 18:51:10 +0200 Subject: Fix deprecations and build warnings --- src/recoverable-problem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/recoverable-problem.c') diff --git a/src/recoverable-problem.c b/src/recoverable-problem.c index 670b78c..f1f8890 100644 --- a/src/recoverable-problem.c +++ b/src/recoverable-problem.c @@ -45,7 +45,7 @@ write_null (int fd) /* Child watcher */ static gboolean -apport_child_watch (GPid pid G_GNUC_UNUSED, gint status G_GNUC_UNUSED, gpointer user_data) +apport_child_watch (gpointer user_data) { g_main_loop_quit((GMainLoop *)user_data); return FALSE; @@ -145,7 +145,7 @@ report_recoverable_problem (const gchar * signature, GPid report_pid, gboolean w child_source = g_child_watch_source_new(pid); g_source_attach(child_source, context); - g_source_set_callback(child_source, (GSourceFunc)apport_child_watch, loop, NULL); + g_source_set_callback(child_source, apport_child_watch, loop, NULL); timeout_source = g_timeout_source_new_seconds(5); g_source_attach(timeout_source, context); -- cgit v1.2.3