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;
if (addr || sa_filled_in) {
portsock = socket(AF_INET, SOCK_STREAM, 0);
if(CURL_SOCKET_BAD != portsock) {
- int size;
+ socklen_t size;
/* we set the secondary socket variable to this for now, it
is only so that the cleanup function will close it in case