diff options
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 2e97dee22c..9b23467e73 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -319,7 +319,7 @@ static INLINE uint32_t IPV4IP(const tor_addr_t *a); static INLINE uint32_t IPV4IPh(const tor_addr_t *a); static INLINE uint32_t IPV4MAPh(const tor_addr_t *a); static INLINE uint16_t IN_FAMILY(const tor_addr_t *a); -static INLINE const struct in_addr *IN_ADDR(const tor_addr_t *a); +static INLINE const struct in_addr *IN4_ADDR(const tor_addr_t *a); static INLINE const struct in6_addr *IN6_ADDR(const tor_addr_t *a); static INLINE uint16_t IN_PORT(const tor_addr_t *a); @@ -344,7 +344,7 @@ IN_FAMILY(const tor_addr_t *a) return a->sa.sin_family; } static INLINE const struct in_addr * -IN_ADDR(const tor_addr_t *a) +IN4_ADDR(const tor_addr_t *a) { return &a->sa.sin_addr; } |