diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2006-07-21 05:51:12 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2006-07-21 05:51:12 +0000 |
commit | a55c70d4ae88a15d9a7f726267fa27fe638496a5 (patch) | |
tree | a0434a0d692e54981268e2375bba8c3826e1f64d /lib/hostares.c | |
parent | 02938a010db060a3d14ae0df6a3f95941c33b810 (diff) | |
download | curl-a55c70d4ae88a15d9a7f726267fa27fe638496a5.tar.gz |
Constify 'hostname' and 'service' to various resolver functions.
Diffstat (limited to 'lib/hostares.c')
-rw-r--r-- | lib/hostares.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostares.c b/lib/hostares.c index f08ad5859..af1513ca2 100644 --- a/lib/hostares.c +++ b/lib/hostares.c @@ -259,7 +259,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn, * Curl_freeaddrinfo(), nothing else. */ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, - char *hostname, + const char *hostname, int port, int *waitp) { @@ -314,7 +314,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; |