mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-04 01:18:08 +02:00
platform: fix NMPlatformLink/NMFakePlatformLink type mismatch
This commit is contained in:
parent
0376f0be16
commit
f714c1033f
1 changed files with 2 additions and 2 deletions
|
|
@ -143,12 +143,12 @@ static GArray *
|
|||
link_get_all (NMPlatform *platform)
|
||||
{
|
||||
NMFakePlatformPrivate *priv = NM_FAKE_PLATFORM_GET_PRIVATE (platform);
|
||||
GArray *links = g_array_sized_new (TRUE, TRUE, sizeof (NMFakePlatformLink), priv->links->len);
|
||||
GArray *links = g_array_sized_new (TRUE, TRUE, sizeof (NMPlatformLink), priv->links->len);
|
||||
int i;
|
||||
|
||||
for (i = 0; i < priv->links->len; i++)
|
||||
if (g_array_index (priv->links, NMFakePlatformLink, i).link.ifindex)
|
||||
g_array_append_val (links, g_array_index (priv->links, NMFakePlatformLink, i));
|
||||
g_array_append_val (links, g_array_index (priv->links, NMFakePlatformLink, i).link);
|
||||
|
||||
return links;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue