summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-05-31 11:01:48 +0200
committerThomas Haller <thaller@redhat.com>2017-05-31 11:01:52 +0200
commitb8707cba3c6dcdcdd25bec17314f658cb71fa9fb (patch)
tree63522a86c672d4d8233dc4844f99cb5170940461
parent902085c879ba5e25bb54bbd8924857523716a579 (diff)
downloadNetworkManager-b8707cba3c6dcdcdd25bec17314f658cb71fa9fb.tar.gz
platform/tests: minor fix in _wait_for_ipv6_addr_non_tentative()
For better or worse, there is a platform argument. Use it instead of the singleton.
-rw-r--r--src/platform/tests/test-route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/tests/test-route.c b/src/platform/tests/test-route.c
index 2c709d730a..c96af93e51 100644
--- a/src/platform/tests/test-route.c
+++ b/src/platform/tests/test-route.c
@@ -49,7 +49,7 @@ _wait_for_ipv6_addr_non_tentative (NMPlatform *platform,
const NMPlatformIP6Address *plt_addr;
for (i = 0; i < addr_n; i++) {
- plt_addr = nm_platform_ip6_address_get (NM_PLATFORM_GET, ifindex, addrs[i]);
+ plt_addr = nm_platform_ip6_address_get (platform, ifindex, addrs[i]);
if ( !plt_addr
|| NM_FLAGS_HAS (plt_addr->n_ifa_flags, IFA_F_TENTATIVE)) {
should_wait = TRUE;
@@ -58,7 +58,7 @@ _wait_for_ipv6_addr_non_tentative (NMPlatform *platform,
}
if (!should_wait)
return;
- nmtstp_assert_wait_for_signal (NM_PLATFORM_GET,
+ nmtstp_assert_wait_for_signal (platform,
(nmtst_wait_end_us - g_get_monotonic_time ()) / 1000);
});
}