]> granicus.if.org Git - curl/commitdiff
avoid warnings on systems with this member set const
authorDaniel Stenberg <daniel@haxx.se>
Wed, 6 Oct 2004 07:52:20 +0000 (07:52 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 6 Oct 2004 07:52:20 +0000 (07:52 +0000)
lib/hostip4.c

index 50d2adaa883cdeffc9fbe1b9ba7b09cb85228464..ebbb9e375dacce44474d5409bf34b04a6a6a4d77 100644 (file)
@@ -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);