From: Daniel Stenberg Date: Wed, 6 Oct 2004 07:52:20 +0000 (+0000) Subject: avoid warnings on systems with this member set const X-Git-Tag: curl-7_12_2~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49b2896a3bbd53fcc4f3e596bd52e418da921cba;p=thirdparty%2Fcurl.git avoid warnings on systems with this member set const --- diff --git a/lib/hostip4.c b/lib/hostip4.c index 50d2adaa88..ebbb9e375d 100644 --- a/lib/hostip4.c +++ b/lib/hostip4.c @@ -161,7 +161,7 @@ Curl_addrinfo *Curl_ip2addr(in_addr_t num, char *hostname, int port) h->h_aliases = NULL; /* 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);