Reversed the logic for sockaddr_storage and made our own Curl_sockaddr_storage

struct instead to use.
This commit is contained in:
Daniel Stenberg 2005-11-12 22:10:42 +00:00
parent be524fed38
commit a5da1219bb
3 changed files with 13 additions and 11 deletions

View file

@ -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];