diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-03-19 09:16:59 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-03-19 09:16:59 +0000 |
commit | b28b616eb2ed16cddb7361a3924b1dbf795fc3a8 (patch) | |
tree | 7a98d3aa22cc541358d369bcd360633e8e8472cf | |
parent | 4534ca238dc5c9736740003bbc25e025ce9c1efc (diff) |
typecast the conversion from const char * to char *
-rw-r--r-- | lib/hostip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index 2cee362d1..b12b2b91a 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -511,7 +511,7 @@ static struct hostent* pack_hostent(char** buf, struct hostent* orig) } #endif -static char *MakeIP(unsigned long num,char *addr, int addr_len) +static char *MakeIP(unsigned long num, char *addr, int addr_len) { #if defined(HAVE_INET_NTOA) || defined(HAVE_INET_NTOA_R) struct in_addr in; @@ -594,7 +594,7 @@ static Curl_addrinfo *my_getaddrinfo(struct SessionHandle *data, h->h_addrtype = AF_INET; h->h_length = sizeof(*addrentry); 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) else { |