diff options
author | Thomas Haller <thaller@redhat.com> | 2017-05-27 11:36:44 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-05-27 11:38:38 +0200 |
commit | 59e31ab6eaf446575a5c54f9f336f6767163a16f (patch) | |
tree | 94175cc83337b7a69c335b175229fedab238fa78 /libnm/nm-object.c | |
parent | ce956a240b75b9068a4d9d8bf10037a7d7eee959 (diff) | |
download | NetworkManager-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.c | 7 |
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++) { |