aboutsummaryrefslogtreecommitdiff
path: root/src/recoverable-problem.c
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-08-24 18:51:10 +0200
committerRobert Tari <robert@tari.in>2020-08-24 18:51:10 +0200
commitcd78667f5baa22ff64eec87dcef6bafd868c070c (patch)
treeb5a17179679b73838ebebee627da446bfdbfe98f /src/recoverable-problem.c
parentb3cd9e10b377a3b176034edfdf46eb2ececb381b (diff)
downloadayatana-indicator-session-cd78667f5baa22ff64eec87dcef6bafd868c070c.tar.gz
ayatana-indicator-session-cd78667f5baa22ff64eec87dcef6bafd868c070c.tar.bz2
ayatana-indicator-session-cd78667f5baa22ff64eec87dcef6bafd868c070c.zip
Fix deprecations and build warnings
Diffstat (limited to 'src/recoverable-problem.c')
-rw-r--r--src/recoverable-problem.c4
1 files changed, 2 insertions, 2 deletions
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);