aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/policies.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-04-30 06:17:18 +1000
committerteor <teor@torproject.org>2020-04-30 06:54:42 +1000
commitcd7e2fc210349615c8e9cdb879f98cb0c9cac57b (patch)
tree60b9ddd3c3c1c60b64b1d643e7ef3dbfa8f8ec65 /src/core/or/policies.c
parentf62b051e873aa4be564e9f83745902d4541f79f4 (diff)
downloadtor-cd7e2fc210349615c8e9cdb879f98cb0c9cac57b.tar.gz
tor-cd7e2fc210349615c8e9cdb879f98cb0c9cac57b.zip
net: Make all address bytes functions take uint8_t *
Part of 33817.
Diffstat (limited to 'src/core/or/policies.c')
-rw-r--r--src/core/or/policies.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/or/policies.c b/src/core/or/policies.c
index dd4feaadfc..ea803f393d 100644
--- a/src/core/or/policies.c
+++ b/src/core/or/policies.c
@@ -167,7 +167,7 @@ policy_expand_unspec(smartlist_t **policy)
}
tor_addr_from_ipv4h(&newpolicy_ipv4.addr, 0);
tor_addr_from_ipv6_bytes(&newpolicy_ipv6.addr,
- "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
+ (const uint8_t *)"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
smartlist_add(tmp, addr_policy_get_canonical_entry(&newpolicy_ipv4));
smartlist_add(tmp, addr_policy_get_canonical_entry(&newpolicy_ipv6));
addr_policy_free(p);
@@ -1005,7 +1005,7 @@ fascist_firewall_choose_address_ls(const smartlist_t *lspecs,
* direct connection. */
if (have_v6) continue;
tor_addr_from_ipv6_bytes(&addr_v6,
- (const char *) link_specifier_getconstarray_un_ipv6_addr(ls));
+ link_specifier_getconstarray_un_ipv6_addr(ls));
port_v6 = link_specifier_get_un_ipv6_port(ls);
have_v6 = 1;
break;