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.
This commit is contained in:
Thomas Haller 2017-05-27 11:36:44 +02:00
parent ce956a240b
commit 59e31ab6ea

View file

@ -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++) {