diff options
author | Yang Tse <yangsita@gmail.com> | 2006-07-14 10:30:44 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-07-14 10:30:44 +0000 |
commit | c3c894564616ab1943a076f92b31c9e41884d188 (patch) | |
tree | b46ec761540cea15417f8904f55d02aba419c8b1 /ares_ipv6.h | |
parent | 31dfa4924d4b29208cff39d185992cddf4e16a48 (diff) | |
download | c-ares-c3c894564616ab1943a076f92b31c9e41884d188.tar.gz c-ares-c3c894564616ab1943a076f92b31c9e41884d188.tar.bz2 c-ares-c3c894564616ab1943a076f92b31c9e41884d188.zip |
Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.
Diffstat (limited to 'ares_ipv6.h')
-rw-r--r-- | ares_ipv6.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ares_ipv6.h b/ares_ipv6.h index a6d980f..afc9832 100644 --- a/ares_ipv6.h +++ b/ares_ipv6.h @@ -40,14 +40,14 @@ struct sockaddr_in6 #endif #ifndef HAVE_STRUCT_ADDRINFO -struct addrinfo +struct addrinfo { - int ai_flags; - int ai_family; - int ai_socktype; - int ai_protocol; - size_t ai_addrlen; - char *ai_cannonname; + int ai_flags; + int ai_family; + int ai_socktype; + int ai_protocol; + socklen_t ai_addrlen; /* Follow rfc3493 struct addrinfo */ + char *ai_canonname; struct sockaddr *ai_addr; struct addrinfo *ai_next; }; |