summaryrefslogtreecommitdiff
path: root/libnm/nm-object.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-05-27 11:36:44 +0200
committerThomas Haller <thaller@redhat.com>2017-05-27 11:38:38 +0200
commit59e31ab6eaf446575a5c54f9f336f6767163a16f (patch)
tree94175cc83337b7a69c335b175229fedab238fa78 /libnm/nm-object.c
parentce956a240b75b9068a4d9d8bf10037a7d7eee959 (diff)
downloadNetworkManager-59e31ab6eaf446575a5c54f9f336f6767163a16f.tar.gz
libnm: cleanup argument types for init_if() function
We use init_if() as handler for g_list_foreach(). Since we already cast the function pointer because it doesn't have (GFunc) signature, we can just as well use the correct types right away.
Diffstat (limited to 'libnm/nm-object.c')
-rw-r--r--libnm/nm-object.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libnm/nm-object.c b/libnm/nm-object.c
index f292cfbcc1..b99efe370b 100644
--- a/libnm/nm-object.c
+++ b/libnm/nm-object.c
@@ -1034,15 +1034,16 @@ init_dbus (NMObject *object)
}
static void
-init_if (GDBusInterface *interface, gpointer user_data)
+init_if (GDBusProxy *proxy, NMObject *self)
{
- NMObject *self = NM_OBJECT (user_data);
- GDBusProxy *proxy = G_DBUS_PROXY (interface);
gchar **props;
char **prop;
GVariant *val;
gchar *str;
+ nm_assert (G_IS_DBUS_PROXY (proxy));
+ nm_assert (NM_IS_OBJECT (self));
+
props = g_dbus_proxy_get_cached_property_names (proxy);
for (prop = props; prop && *prop; prop++) {