From 49b2896a3bbd53fcc4f3e596bd52e418da921cba Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 6 Oct 2004 07:52:20 +0000 Subject: avoid warnings on systems with this member set const --- lib/hostip4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hostip4.c b/lib/hostip4.c index 50d2adaa8..ebbb9e375 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); -- cgit v1.2.3