mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 15:30:14 +01:00
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:
parent
ce956a240b
commit
59e31ab6ea
1 changed files with 4 additions and 3 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue