summaryrefslogtreecommitdiff
path: root/lib/hostip6.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-21 05:51:12 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-21 05:51:12 +0000
commita55c70d4ae88a15d9a7f726267fa27fe638496a5 (patch)
treea0434a0d692e54981268e2375bba8c3826e1f64d /lib/hostip6.c
parent02938a010db060a3d14ae0df6a3f95941c33b810 (diff)
downloadcurl-a55c70d4ae88a15d9a7f726267fa27fe638496a5.tar.gz
Constify 'hostname' and 'service' to various resolver functions.
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r--lib/hostip6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c
index b013ee902..3d80166c1 100644
--- a/lib/hostip6.c
+++ b/lib/hostip6.c
@@ -116,7 +116,7 @@ Curl_addrinfo *Curl_addrinfo_copy(void *source, int port)
* family otherwise present in memdebug.c. I put these ones here since they
* require a bunch of structs I didn't wanna include in memdebug.c
*/
-int curl_dogetaddrinfo(char *hostname, char *service,
+int curl_dogetaddrinfo(const char *hostname, const char *service,
struct addrinfo *hints,
struct addrinfo **result,
int line, const char *source)
@@ -222,7 +222,7 @@ static void dump_addrinfo(struct connectdata *conn, const struct addrinfo *ai)
* Curl_freeaddrinfo(), nothing else.
*/
Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
- char *hostname,
+ const char *hostname,
int port,
int *waitp)
{