diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-02-09 12:32:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-02-09 12:32:10 -0500 |
commit | c0d682686ad8df66b1f6680b1185853532f24429 (patch) | |
tree | 5f2bc651108569b0b1c034fd326ee958e62c4a39 /src/common/address.h | |
parent | 080e8f50f87fb7c0c099b1341173fa05c82a42e8 (diff) | |
download | tor-c0d682686ad8df66b1f6680b1185853532f24429.tar.gz tor-c0d682686ad8df66b1f6680b1185853532f24429.zip |
Make tor_addr_copy() conform to memcpy requirements
The src and dest of a memcpy() call aren't supposed to overlap,
but we were sometimes calling tor_addr_copy() as a no-op.
Also, tor_addr_assign was a redundant copy of tor_addr_copy(); this patch
removes it.
Diffstat (limited to 'src/common/address.h')
-rw-r--r-- | src/common/address.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/address.h b/src/common/address.h index 9480d64274..4d4c91075b 100644 --- a/src/common/address.h +++ b/src/common/address.h @@ -107,7 +107,6 @@ tor_addr_eq_ipv4h(const tor_addr_t *a, uint32_t u) int tor_addr_lookup(const char *name, uint16_t family, tor_addr_t *addr_out); char *tor_dup_addr(const tor_addr_t *addr) ATTR_MALLOC; -void tor_addr_assign(tor_addr_t *dest, const tor_addr_t *src); const char *fmt_addr(const tor_addr_t *addr); int get_interface_address6(int severity, sa_family_t family, tor_addr_t *addr); |