From a55c70d4ae88a15d9a7f726267fa27fe638496a5 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Fri, 21 Jul 2006 05:51:12 +0000 Subject: Constify 'hostname' and 'service' to various resolver functions. --- lib/hostip4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/hostip4.c') diff --git a/lib/hostip4.c b/lib/hostip4.c index e55eb38d8..627b0783a 100644 --- a/lib/hostip4.c +++ b/lib/hostip4.c @@ -139,7 +139,7 @@ struct namebuf { * The input parameters ARE NOT checked for validity but they are expected * to have been checked already when this is called. */ -Curl_addrinfo *Curl_ip2addr(in_addr_t num, char *hostname, int port) +Curl_addrinfo *Curl_ip2addr(in_addr_t num, const char *hostname, int port) { Curl_addrinfo *ai; struct hostent *h; @@ -185,7 +185,7 @@ Curl_addrinfo *Curl_ip2addr(in_addr_t num, char *hostname, int port) * */ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, - char *hostname, + const char *hostname, int port, int *waitp) { -- cgit v1.2.1