aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_addrinfo.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-10 10:24:53 +0000
committerYang Tse <yangsita@gmail.com>2009-05-10 10:24:53 +0000
commita85271ce0a6f60fa09b95a7fa2c9b3946b4ea2f2 (patch)
tree8a0eb4ef95683965a70713b1810da84b0c160e6a /lib/curl_addrinfo.c
parentfd5e69f7697c1230b618693ffa697e409a202271 (diff)
Fix type cast
Diffstat (limited to 'lib/curl_addrinfo.c')
-rw-r--r--lib/curl_addrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c
index 24ba4fa20..963335111 100644
--- a/lib/curl_addrinfo.c
+++ b/lib/curl_addrinfo.c
@@ -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 */