diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2006-07-21 06:21:46 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2006-07-21 06:21:46 +0000 |
commit | 5cdbd0cf4a23826b8f7b74bbc071afb6515e3aab (patch) | |
tree | 6ffb85d3e04e13dd2b3d2d297bb747a5d18c8c83 /lib/hostip.h | |
parent | a55c70d4ae88a15d9a7f726267fa27fe638496a5 (diff) | |
download | curl-5cdbd0cf4a23826b8f7b74bbc071afb6515e3aab.tar.gz |
Constify arguments to Curl_he2ai() and Curl_addrinfo_copy().
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index bd3b28dc5..72906ab32 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -224,13 +224,13 @@ Curl_addrinfo *Curl_ip2addr(in_addr_t num, const char *hostname, int port); /* [ipv4 only] Curl_he2ai() converts a struct hostent to a Curl_addrinfo chain and returns it */ -Curl_addrinfo *Curl_he2ai(struct hostent *, int port); +Curl_addrinfo *Curl_he2ai(const struct hostent *, int port); /* relocate a hostent struct */ void Curl_hostent_relocate(struct hostent *h, long offset); /* Clone a Curl_addrinfo struct, works protocol independently */ -Curl_addrinfo *Curl_addrinfo_copy(void *orig, int port); +Curl_addrinfo *Curl_addrinfo_copy(const void *orig, int port); /* * Curl_printable_address() returns a printable version of the 1st address |