mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
avoid warnings on systems with this member set const
This commit is contained in:
parent
39af394a1c
commit
49b2896a3b
@ -161,7 +161,7 @@ Curl_addrinfo *Curl_ip2addr(in_addr_t num, char *hostname, int port)
|
|||||||
h->h_aliases = NULL;
|
h->h_aliases = NULL;
|
||||||
|
|
||||||
/* Now store the dotted version of the address */
|
/* Now store the dotted version of the address */
|
||||||
snprintf(h->h_name, 16, "%s", hostname);
|
snprintf((char *)h->h_name, 16, "%s", hostname);
|
||||||
|
|
||||||
ai = Curl_he2ai(h, port);
|
ai = Curl_he2ai(h, port);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user