From 4c17ba4fc044eb7eb02ed7ea8c716b8f7e6614d9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 4 Jul 2004 21:48:54 +0000 Subject: make sure the 3rd argument passed to bind() is a socklen_t --- lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/connect.c') diff --git a/lib/connect.c b/lib/connect.c index ce3d40cf1..de8d29726 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -336,7 +336,7 @@ static CURLcode bindlocal(struct connectdata *conn, Curl_resolv_unlock(data, h); /* we don't need it anymore after this function has returned */ - if( bind(sockfd, addr->ai_addr, addr->ai_addrlen) >= 0) { + if( bind(sockfd, addr->ai_addr, (socklen_t)addr->ai_addrlen) >= 0) { /* we succeeded to bind */ #ifdef ENABLE_IPV6 struct sockaddr_in6 add; -- cgit v1.2.3