Constify 'hostname' and 'service' to various resolver functions.

This commit is contained in:
Gisle Vanem
2006-07-21 05:51:12 +00:00
parent 02938a010d
commit a55c70d4ae
6 changed files with 17 additions and 17 deletions

View File

@@ -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;