aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 43e17aa63..207956693 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -558,7 +558,7 @@ void Curl_updateconninfo(curl_socket_t sockfd, struct PureInfo* info)
struct Curl_sockaddr_storage ssrem;
struct Curl_sockaddr_storage ssloc;
- socklen_t len = sizeof(struct Curl_sockaddr_storage);
+ curl_socklen_t len = sizeof(struct Curl_sockaddr_storage);
getpeername(sockfd, (struct sockaddr*) &ssrem, &len);
getsockname(sockfd, (struct sockaddr*) &ssloc, &len);