Skip to content

Commit c886f90

Browse files
Move argument comments to the end of line
1 parent 32d8697 commit c886f90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

auto_tests/network_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ START_TEST(test_addr_resolv_localhost)
2828
int localhost_split = 0;
2929

3030
IP ip;
31-
ip_init(&ip, /* ipv6? */ 0);
31+
ip_init(&ip, 0); // ipv6enabled = 0
3232

3333
int res = addr_resolve(localhost, &ip, NULL);
3434

@@ -39,7 +39,7 @@ START_TEST(test_addr_resolv_localhost)
3939
ck_assert_msg(ip.ip4.uint32 == htonl(0x7F000001), "Expected 127.0.0.1, got %s.", inet_ntoa(ip.ip4.in_addr));
4040
}
4141

42-
ip_init(&ip, /* ipv6? */ 1);
42+
ip_init(&ip, 1); // ipv6enabled = 1
4343
res = addr_resolve(localhost, &ip, NULL);
4444

4545
if (!(res & TOX_ADDR_RESOLVE_INET6)) {
@@ -55,7 +55,7 @@ START_TEST(test_addr_resolv_localhost)
5555
}
5656

5757
if (!localhost_split) {
58-
ip_init(&ip, /* ipv6? */ 1);
58+
ip_init(&ip, 1); // ipv6enabled = 1
5959
ip.family = AF_UNSPEC;
6060
IP extra;
6161
ip_reset(&extra);

toxcore/network.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,9 +970,9 @@ int addr_resolve(const char *address, IP *to, IP *extra)
970970
}
971971

972972
IP ip4;
973-
ip_init(&ip4, /* ipv6? */ false);
973+
ip_init(&ip4, 0); // ipv6enabled = 0
974974
IP ip6;
975-
ip_init(&ip6, /* ipv6? */ true);
975+
ip_init(&ip6, 1); // ipv6enabled = 1
976976

977977
for (walker = server; (walker != NULL) && !done; walker = walker->ai_next) {
978978
switch (walker->ai_family) {

0 commit comments

Comments
 (0)