mirror of https://github.com/moparisthebest/curl
typecast the conversion from const char * to char *
This commit is contained in:
parent
4534ca238d
commit
b28b616eb2
|
@ -594,7 +594,7 @@ static Curl_addrinfo *my_getaddrinfo(struct SessionHandle *data,
|
||||||
h->h_addrtype = AF_INET;
|
h->h_addrtype = AF_INET;
|
||||||
h->h_length = sizeof(*addrentry);
|
h->h_length = sizeof(*addrentry);
|
||||||
h->h_name = &buf->h_name[0];
|
h->h_name = &buf->h_name[0];
|
||||||
MakeIP(ntohl(in), h->h_name, sizeof(buf->h_name));
|
MakeIP(ntohl(in), (char *)h->h_name, sizeof(buf->h_name));
|
||||||
}
|
}
|
||||||
#if defined(HAVE_GETHOSTBYNAME_R)
|
#if defined(HAVE_GETHOSTBYNAME_R)
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue