Fix compiler warning and compatibility issue with the type of the parameter used in getnameinfo() to receive the length of the sockaddr struct.

This commit is contained in:
Yang Tse
2005-12-11 12:03:01 +00:00
parent b4113360f6
commit 36485e56ed
5 changed files with 6 additions and 6 deletions

View File

@@ -780,7 +780,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
*/
struct Curl_sockaddr_storage ss;
struct addrinfo *res, *ai;
socklen_t sslen;
size_t sslen;
char hbuf[NI_MAXHOST];
struct sockaddr *sa=(struct sockaddr *)&ss;
unsigned char *ap;