summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/platform/tests/test-common.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/platform/tests/test-common.c b/src/core/platform/tests/test-common.c
index 5a39d3aaf7..161c989df4 100644
--- a/src/core/platform/tests/test-common.c
+++ b/src/core/platform/tests/test-common.c
@@ -1893,9 +1893,13 @@ nmtstp_ip4_address_add(NMPlatform *platform,
external_command,
TRUE,
ifindex,
- (NMIPAddr *) &address,
+ &((NMIPAddr){
+ .addr4 = address,
+ }),
plen,
- (NMIPAddr *) &peer_address,
+ &((NMIPAddr){
+ .addr4 = peer_address,
+ }),
lifetime,
preferred,
flags,