diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-10-15 11:36:16 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-15 11:36:16 -0400 |
commit | 59cba1767c450f591e542d661c4eddbf01fbb658 (patch) | |
tree | bacc2378b766fdc565ba58d2c41e5dfb33b68d70 /src/common/address.h | |
parent | 247ce5876a56cdbbd6a7b3f501476ff10f4bce5e (diff) | |
download | tor-59cba1767c450f591e542d661c4eddbf01fbb658.tar.gz tor-59cba1767c450f591e542d661c4eddbf01fbb658.zip |
Make the return value of tor_addr_sockaddr always be signed
Diffstat (limited to 'src/common/address.h')
-rw-r--r-- | src/common/address.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/address.h b/src/common/address.h index 457532d0df..c7a08698f5 100644 --- a/src/common/address.h +++ b/src/common/address.h @@ -39,7 +39,7 @@ static INLINE sa_family_t tor_addr_family(const tor_addr_t *a); static INLINE const struct in_addr *tor_addr_to_in(const tor_addr_t *a); static INLINE int tor_addr_eq_ipv4h(const tor_addr_t *a, uint32_t u); -socklen_t tor_addr_to_sockaddr(const tor_addr_t *a, uint16_t port, +int tor_addr_to_sockaddr(const tor_addr_t *a, uint16_t port, struct sockaddr *sa_out, socklen_t len); int tor_addr_from_sockaddr(tor_addr_t *a, const struct sockaddr *sa, uint16_t *port_out); |