mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:53:33 +03:00
Reversed the logic for sockaddr_storage and made our own Curl_sockaddr_storage
struct instead to use.
This commit is contained in:
parent
be524fed38
commit
a5da1219bb
3 changed files with 13 additions and 11 deletions
|
|
@ -94,7 +94,7 @@
|
|||
#include "inet_ntop.h"
|
||||
#include "select.h"
|
||||
#include "parsedate.h" /* for the week day and month names */
|
||||
#include "sockaddr.h" /* required for sockaddr_storage */
|
||||
#include "sockaddr.h" /* required for Curl_sockaddr_storage */
|
||||
|
||||
#if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
|
||||
#include "inet_ntoa_r.h"
|
||||
|
|
@ -778,7 +778,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
|
|||
/******************************************************************
|
||||
* IPv6-specific section
|
||||
*/
|
||||
struct sockaddr_storage ss;
|
||||
struct Curl_sockaddr_storage ss;
|
||||
struct addrinfo *res, *ai;
|
||||
socklen_t sslen;
|
||||
char hbuf[NI_MAXHOST];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue