Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.

This commit is contained in:
Yang Tse
2006-07-14 10:30:44 +00:00
parent 31dfa4924d
commit c3c8945646
+7 -7
View File
@@ -40,14 +40,14 @@ struct sockaddr_in6
#endif #endif
#ifndef HAVE_STRUCT_ADDRINFO #ifndef HAVE_STRUCT_ADDRINFO
struct addrinfo struct addrinfo
{ {
int ai_flags; int ai_flags;
int ai_family; int ai_family;
int ai_socktype; int ai_socktype;
int ai_protocol; int ai_protocol;
size_t ai_addrlen; socklen_t ai_addrlen; /* Follow rfc3493 struct addrinfo */
char *ai_cannonname; char *ai_canonname;
struct sockaddr *ai_addr; struct sockaddr *ai_addr;
struct addrinfo *ai_next; struct addrinfo *ai_next;
}; };