Loading lib/connect.c +4 −3 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ static CURLcode bindlocal(struct connectdata *conn, #ifdef HAVE_INET_NTOA #ifndef INADDR_NONE #define INADDR_NONE (unsigned long) ~0 #define INADDR_NONE (in_addr_t) ~0 #endif struct SessionHandle *data = conn->data; Loading @@ -207,7 +207,7 @@ static CURLcode bindlocal(struct connectdata *conn, char *hostdataptr=NULL; size_t size; char myhost[256] = ""; unsigned long in; in_addr_t in; if(Curl_if2ip(data->set.device, myhost, sizeof(myhost))) { h = Curl_getaddrinfo(data, myhost, 0, &hostdataptr); Loading Loading @@ -236,7 +236,8 @@ static CURLcode bindlocal(struct connectdata *conn, infof(data, "We bind local end to %s\n", myhost); if ( (in=inet_addr(myhost)) != INADDR_NONE ) { in=inet_addr(myhost); if (INADDR_NONE != in) { if ( h ) { memset((char *)&sa, 0, sizeof(sa)); Loading lib/ftp.c +2 −2 Original line number Diff line number Diff line Loading @@ -1211,10 +1211,10 @@ CURLcode ftp_use_port(struct connectdata *conn) if(bind(portsock, (struct sockaddr *)&sa, size) >= 0) { /* we succeeded to bind */ struct sockaddr_in add; size = sizeof(add); socklen_t socksize = sizeof(add); if(getsockname(portsock, (struct sockaddr *) &add, (socklen_t *)&size)<0) { &socksize)<0) { failf(data, "getsockname() failed"); return CURLE_FTP_PORT_FAILED; } Loading lib/hostip.c +1 −1 Original line number Diff line number Diff line Loading @@ -265,7 +265,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data, char **bufp) { struct hostent *h = NULL; unsigned long in; in_addr_t in; int ret; /* this variable is unused on several platforms but used on some */ #define CURL_NAMELOOKUP_SIZE 9000 Loading Loading
lib/connect.c +4 −3 Original line number Diff line number Diff line Loading @@ -193,7 +193,7 @@ static CURLcode bindlocal(struct connectdata *conn, #ifdef HAVE_INET_NTOA #ifndef INADDR_NONE #define INADDR_NONE (unsigned long) ~0 #define INADDR_NONE (in_addr_t) ~0 #endif struct SessionHandle *data = conn->data; Loading @@ -207,7 +207,7 @@ static CURLcode bindlocal(struct connectdata *conn, char *hostdataptr=NULL; size_t size; char myhost[256] = ""; unsigned long in; in_addr_t in; if(Curl_if2ip(data->set.device, myhost, sizeof(myhost))) { h = Curl_getaddrinfo(data, myhost, 0, &hostdataptr); Loading Loading @@ -236,7 +236,8 @@ static CURLcode bindlocal(struct connectdata *conn, infof(data, "We bind local end to %s\n", myhost); if ( (in=inet_addr(myhost)) != INADDR_NONE ) { in=inet_addr(myhost); if (INADDR_NONE != in) { if ( h ) { memset((char *)&sa, 0, sizeof(sa)); Loading
lib/ftp.c +2 −2 Original line number Diff line number Diff line Loading @@ -1211,10 +1211,10 @@ CURLcode ftp_use_port(struct connectdata *conn) if(bind(portsock, (struct sockaddr *)&sa, size) >= 0) { /* we succeeded to bind */ struct sockaddr_in add; size = sizeof(add); socklen_t socksize = sizeof(add); if(getsockname(portsock, (struct sockaddr *) &add, (socklen_t *)&size)<0) { &socksize)<0) { failf(data, "getsockname() failed"); return CURLE_FTP_PORT_FAILED; } Loading
lib/hostip.c +1 −1 Original line number Diff line number Diff line Loading @@ -265,7 +265,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data, char **bufp) { struct hostent *h = NULL; unsigned long in; in_addr_t in; int ret; /* this variable is unused on several platforms but used on some */ #define CURL_NAMELOOKUP_SIZE 9000 Loading