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 ccfce89423
commit d2cefc140a
4 changed files with 43 additions and 37 deletions

View File

@@ -713,7 +713,7 @@ singleipconnect(struct connectdata *conn,
/* Connect TCP sockets, bind UDP */
if(conn->socktype == SOCK_STREAM)
rc = connect(sockfd, ai->ai_addr, (socklen_t)ai->ai_addrlen);
rc = connect(sockfd, ai->ai_addr, ai->ai_addrlen);
else
rc = 0;