Move argument comments to the end of line

This commit is contained in:
Roman Yepishev 2016-02-27 14:32:49 -05:00
parent 32d86978fd
commit c886f906a8
No known key found for this signature in database
GPG Key ID: 36E6C11BD01DF544
2 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ START_TEST(test_addr_resolv_localhost)
int localhost_split = 0; int localhost_split = 0;
IP ip; IP ip;
ip_init(&ip, /* ipv6? */ 0); ip_init(&ip, 0); // ipv6enabled = 0
int res = addr_resolve(localhost, &ip, NULL); int res = addr_resolve(localhost, &ip, NULL);
@ -39,7 +39,7 @@ START_TEST(test_addr_resolv_localhost)
ck_assert_msg(ip.ip4.uint32 == htonl(0x7F000001), "Expected 127.0.0.1, got %s.", inet_ntoa(ip.ip4.in_addr)); ck_assert_msg(ip.ip4.uint32 == htonl(0x7F000001), "Expected 127.0.0.1, got %s.", inet_ntoa(ip.ip4.in_addr));
} }
ip_init(&ip, /* ipv6? */ 1); ip_init(&ip, 1); // ipv6enabled = 1
res = addr_resolve(localhost, &ip, NULL); res = addr_resolve(localhost, &ip, NULL);
if (!(res & TOX_ADDR_RESOLVE_INET6)) { if (!(res & TOX_ADDR_RESOLVE_INET6)) {
@ -55,7 +55,7 @@ START_TEST(test_addr_resolv_localhost)
} }
if (!localhost_split) { if (!localhost_split) {
ip_init(&ip, /* ipv6? */ 1); ip_init(&ip, 1); // ipv6enabled = 1
ip.family = AF_UNSPEC; ip.family = AF_UNSPEC;
IP extra; IP extra;
ip_reset(&extra); ip_reset(&extra);

View File

@ -970,9 +970,9 @@ int addr_resolve(const char *address, IP *to, IP *extra)
} }
IP ip4; IP ip4;
ip_init(&ip4, /* ipv6? */ false); ip_init(&ip4, 0); // ipv6enabled = 0
IP ip6; IP ip6;
ip_init(&ip6, /* ipv6? */ true); ip_init(&ip6, 1); // ipv6enabled = 1
for (walker = server; (walker != NULL) && !done; walker = walker->ai_next) { for (walker = server; (walker != NULL) && !done; walker = walker->ai_next) {
switch (walker->ai_family) { switch (walker->ai_family) {