1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Fix type cast

This commit is contained in:
Yang Tse 2009-05-10 10:24:53 +00:00
parent fd5e69f769
commit a85271ce0a

View File

@ -303,7 +303,7 @@ Curl_he2ai(const struct hostent *he, int port)
the type must be ignored and conn->socktype be used instead! */
ai->ai_socktype = SOCK_STREAM;
ai->ai_addrlen = (int)ss_size;
ai->ai_addrlen = (curl_socklen_t)ss_size;
/* leave the rest of the struct filled with zero */