aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-04-30 05:54:39 +1000
committerteor <teor@torproject.org>2020-04-30 05:54:39 +1000
commitf62b051e873aa4be564e9f83745902d4541f79f4 (patch)
tree54500126c0d02cc0103c9bbc6964a603d9ca3f4c /src/lib/net
parent528a1fe985fbcbd348825c5ab98d0e9018453c5b (diff)
downloadtor-f62b051e873aa4be564e9f83745902d4541f79f4.tar.gz
tor-f62b051e873aa4be564e9f83745902d4541f79f4.zip
Rename tor_addr_get_ipv6_bytes to tor_addr_copy_ipv6_bytes
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ tor_addr_get_ipv6_bytes tor_addr_copy_ipv6_bytes
Diffstat (limited to 'src/lib/net')
-rw-r--r--src/lib/net/address.c2
-rw-r--r--src/lib/net/address.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/net/address.c b/src/lib/net/address.c
index 9a90093aef..af0e58fa4f 100644
--- a/src/lib/net/address.c
+++ b/src/lib/net/address.c
@@ -907,7 +907,7 @@ tor_addr_from_in6(tor_addr_t *dest, const struct in6_addr *in6)
* <b>src</b> must be an IPv6 address, if it is not, log a warning, and clear
* <b>dest</b>. */
void
-tor_addr_get_ipv6_bytes(char *dest, const tor_addr_t *src)
+tor_addr_copy_ipv6_bytes(char *dest, const tor_addr_t *src)
{
tor_assert(dest);
tor_assert(src);
diff --git a/src/lib/net/address.h b/src/lib/net/address.h
index 651d6bc714..89b1cae322 100644
--- a/src/lib/net/address.h
+++ b/src/lib/net/address.h
@@ -309,7 +309,7 @@ void tor_addr_from_ipv6_bytes(tor_addr_t *dest, const char *bytes);
#define tor_addr_from_in(dest, in) \
tor_addr_from_ipv4n((dest), (in)->s_addr);
void tor_addr_from_in6(tor_addr_t *dest, const struct in6_addr *in6);
-void tor_addr_get_ipv6_bytes(char *dest, const tor_addr_t *src);
+void tor_addr_copy_ipv6_bytes(char *dest, const tor_addr_t *src);
int tor_addr_is_null(const tor_addr_t *addr);
int tor_addr_is_loopback(const tor_addr_t *addr);