Remove warnings and fix makefile for Win32.

This commit is contained in:
Diego Nehab 2012-12-11 17:43:49 -02:00
parent 618ce43ee3
commit 72a5347f97
9 changed files with 33 additions and 37 deletions

View file

@ -418,7 +418,7 @@ static const char *tryconnect6(const char *remoteaddr, const char *remoteserv,
/* finally try connecting to remote address */
err = socket_strerror(socket_connect(&tcp->sock,
(SA *) iterator->ai_addr,
iterator->ai_addrlen, tm));
(socklen_t) iterator->ai_addrlen, tm));
/* if success, break out of loop */
if (err == NULL) break;
}