summaryrefslogtreecommitdiff
path: root/lib/hostip4.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/hostip4.c
parent02938a010db060a3d14ae0df6a3f95941c33b810 (diff)
downloadcurl-a55c70d4ae88a15d9a7f726267fa27fe638496a5.tar.gz
Constify 'hostname' and 'service' to various resolver functions.
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c4
1 files changed, 2 insertions, 2 deletions
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)
{