diff options
Diffstat (limited to 'src/nxt_sockaddr.h')
-rw-r--r-- | src/nxt_sockaddr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_sockaddr.h b/src/nxt_sockaddr.h index 11f4b9d1..dc4477c9 100644 --- a/src/nxt_sockaddr.h +++ b/src/nxt_sockaddr.h @@ -102,9 +102,9 @@ NXT_EXPORT nxt_int_t nxt_inet6_addr(struct in6_addr *in6_addr, u_char *buf, (sizeof("[ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]:65535") - 1) -#define nxt_sockaddr_start(sa) ((u_char *) (sa) + (sa)->start) -#define nxt_sockaddr_address(sa) ((u_char *) (sa) + (sa)->address_start) -#define nxt_sockaddr_port(sa) ((u_char *) (sa) + (sa)->port_start) +#define nxt_sockaddr_start(sa) nxt_pointer_to(sa, (sa)->start) +#define nxt_sockaddr_address(sa) nxt_pointer_to(sa, (sa)->address_start) +#define nxt_sockaddr_port(sa) nxt_pointer_to(sa, (sa)->port_start) #define nxt_sockaddr_length(sa) ((sa)->length - (sa)->port_start) |