aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-21 06:21:46 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-21 06:21:46 +0000
commit5cdbd0cf4a23826b8f7b74bbc071afb6515e3aab (patch)
tree6ffb85d3e04e13dd2b3d2d297bb747a5d18c8c83 /lib/hostip.c
parenta55c70d4ae88a15d9a7f726267fa27fe638496a5 (diff)
Constify arguments to Curl_he2ai() and Curl_addrinfo_copy().
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 7146bb2bf..2deab34e4 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -552,9 +552,9 @@ struct curl_hash *Curl_mk_dnscache(void)
* returns a pointer to the malloc()ed copy. You need to call free() on the
* returned buffer when you're done with it.
*/
-Curl_addrinfo *Curl_addrinfo_copy(void *org, int port)
+Curl_addrinfo *Curl_addrinfo_copy(const void *org, int port)
{
- struct hostent *orig = org;
+ const struct hostent *orig = org;
return Curl_he2ai(orig, port);
}