diff options
Diffstat (limited to 'auto_tests')
-rw-r--r-- | auto_tests/network_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_tests/network_test.c b/auto_tests/network_test.c index e3b47ea2..b88b0e8c 100644 --- a/auto_tests/network_test.c +++ b/auto_tests/network_test.c | |||
@@ -28,7 +28,7 @@ START_TEST(test_addr_resolv_localhost) | |||
28 | int localhost_split = 0; | 28 | int localhost_split = 0; |
29 | 29 | ||
30 | IP ip; | 30 | IP ip; |
31 | ip_init(&ip, /* ipv6? */ 0); | 31 | ip_init(&ip, 0); // ipv6enabled = 0 |
32 | 32 | ||
33 | int res = addr_resolve(localhost, &ip, NULL); | 33 | int res = addr_resolve(localhost, &ip, NULL); |
34 | 34 | ||
@@ -39,7 +39,7 @@ START_TEST(test_addr_resolv_localhost) | |||
39 | ck_assert_msg(ip.ip4.uint32 == htonl(0x7F000001), "Expected 127.0.0.1, got %s.", inet_ntoa(ip.ip4.in_addr)); | 39 | ck_assert_msg(ip.ip4.uint32 == htonl(0x7F000001), "Expected 127.0.0.1, got %s.", inet_ntoa(ip.ip4.in_addr)); |
40 | } | 40 | } |
41 | 41 | ||
42 | ip_init(&ip, /* ipv6? */ 1); | 42 | ip_init(&ip, 1); // ipv6enabled = 1 |
43 | res = addr_resolve(localhost, &ip, NULL); | 43 | res = addr_resolve(localhost, &ip, NULL); |
44 | 44 | ||
45 | if (!(res & TOX_ADDR_RESOLVE_INET6)) { | 45 | if (!(res & TOX_ADDR_RESOLVE_INET6)) { |
@@ -55,7 +55,7 @@ START_TEST(test_addr_resolv_localhost) | |||
55 | } | 55 | } |
56 | 56 | ||
57 | if (!localhost_split) { | 57 | if (!localhost_split) { |
58 | ip_init(&ip, /* ipv6? */ 1); | 58 | ip_init(&ip, 1); // ipv6enabled = 1 |
59 | ip.family = AF_UNSPEC; | 59 | ip.family = AF_UNSPEC; |
60 | IP extra; | 60 | IP extra; |
61 | ip_reset(&extra); | 61 | ip_reset(&extra); |