diff options
author | Eric Gallager <egall@gwmail.gwu.edu> | 2018-02-12 01:42:47 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-07 11:18:58 +0200 |
commit | a19fefb0706f939d2df7a76704ee549fecb1c4fd (patch) | |
tree | 46ffddbc152bbf3753e132af5997df91b146ba3c /lib/curl_addrinfo.c | |
parent | 4e884615d1702914c1ec4c182f94eb9b8efc7a16 (diff) | |
download | curl-a19fefb0706f939d2df7a76704ee549fecb1c4fd.tar.gz |
build: add picky compiler warning flags for gcc 6 and 7
Diffstat (limited to 'lib/curl_addrinfo.c')
-rw-r--r-- | lib/curl_addrinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_addrinfo.c b/lib/curl_addrinfo.c index 95a3f1050..01775f704 100644 --- a/lib/curl_addrinfo.c +++ b/lib/curl_addrinfo.c @@ -345,7 +345,7 @@ Curl_he2ai(const struct hostent *he, int port) addr = (void *)ai->ai_addr; /* storage area for this info */ memcpy(&addr->sin_addr, curr, sizeof(struct in_addr)); - addr->sin_family = (unsigned short)(he->h_addrtype); + addr->sin_family = (sa_family_t)(he->h_addrtype); addr->sin_port = htons((unsigned short)port); break; @@ -354,7 +354,7 @@ Curl_he2ai(const struct hostent *he, int port) addr6 = (void *)ai->ai_addr; /* storage area for this info */ memcpy(&addr6->sin6_addr, curr, sizeof(struct in6_addr)); - addr6->sin6_family = (unsigned short)(he->h_addrtype); + addr6->sin6_family = (sa_family_t)(he->h_addrtype); addr6->sin6_port = htons((unsigned short)port); break; #endif |