summaryrefslogtreecommitdiff
path: root/libnm-glib
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-12-05 10:44:12 -0500
committerThomas Haller <thaller@redhat.com>2017-12-06 10:34:28 +0100
commit3f6bef47f33c3422270b569f8d897dc5596e963c (patch)
tree76b76ba6dba739398d139f3c39e17b74b2ce2753 /libnm-glib
parentb0de9cd2099ef19814237e6d00cde1ffbc622116 (diff)
tree-wide: cast after g_object_ref() for proposed GLib patch
This fixes the build with related bug https://bugzilla.gnome.org/show_bug.cgi?id=790697 https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00005.html
Diffstat (limited to 'libnm-glib')
-rw-r--r--libnm-glib/nm-remote-connection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libnm-glib/nm-remote-connection.c b/libnm-glib/nm-remote-connection.c
index d147365b7..b9abf4c4c 100644
--- a/libnm-glib/nm-remote-connection.c
+++ b/libnm-glib/nm-remote-connection.c
@@ -479,7 +479,7 @@ updated_get_settings_cb (DBusGProxy *proxy,
} else {
gs_unref_object NMConnection *self_alive = NULL;
- self_alive = g_object_ref (self);
+ self_alive = (NMConnection*)g_object_ref (self);
_nm_connection_replace_settings (NM_CONNECTION (self), new_settings);
g_signal_emit (self, signals[UPDATED], 0, new_settings);
g_hash_table_destroy (new_settings);
@@ -611,7 +611,7 @@ init_sync (GInitable *initable, GCancellable *cancellable, GError **error)
G_TYPE_INVALID))
return FALSE;
priv->visible = TRUE;
- self_alive = g_object_ref (initable);
+ self_alive = (NMConnection*)g_object_ref (initable);
_nm_connection_replace_settings (NM_CONNECTION (initable), hash);
g_signal_emit (initable, signals[UPDATED], 0, hash);
g_hash_table_destroy (hash);
@@ -687,7 +687,7 @@ init_get_settings_cb (DBusGProxy *proxy,
}
priv->visible = TRUE;
- self_alive = g_object_ref (init_data->connection);
+ self_alive = (NMConnection*)g_object_ref (init_data->connection);
_nm_connection_replace_settings (NM_CONNECTION (init_data->connection), settings);
g_signal_emit (init_data->connection, signals[UPDATED], 0, settings);
g_hash_table_destroy (settings);