summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-rtnl/test-local-addresses.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd/sd-rtnl/test-local-addresses.c')
-rw-r--r--src/libsystemd/sd-rtnl/test-local-addresses.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-rtnl/test-local-addresses.c b/src/libsystemd/sd-rtnl/test-local-addresses.c
index 4cf2c08312..38cbcfbccb 100644
--- a/src/libsystemd/sd-rtnl/test-local-addresses.c
+++ b/src/libsystemd/sd-rtnl/test-local-addresses.c
@@ -39,7 +39,7 @@ int main(int argc, char *argv[]) {
int n;
a = NULL;
- n = local_addresses(NULL, 0, &a);
+ n = local_addresses(NULL, 0, AF_UNSPEC, &a);
assert_se(n >= 0);
printf("Local Addresses:\n");
@@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
free(a);
a = NULL;
- n = local_gateways(NULL, 0, &a);
+ n = local_gateways(NULL, 0, AF_UNSPEC, &a);
assert_se(n >= 0);
printf("Local Gateways:\n");