From: Gisle Vanem Date: Fri, 21 Jul 2006 06:50:39 +0000 (+0000) Subject: Constify some arguments in Curl_connecthost() and singleipconnect(). X-Git-Tag: curl-7_15_5~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4ad533300b5771b8b4885c51c3b0d3e0d59ef5c;p=thirdparty%2Fcurl.git Constify some arguments in Curl_connecthost() and singleipconnect(). --- diff --git a/lib/connect.c b/lib/connect.c index a24a121785..95fdf8119a 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -109,7 +109,7 @@ static bool verifyconnect(curl_socket_t sockfd, int *error); static curl_socket_t singleipconnect(struct connectdata *conn, - Curl_addrinfo *ai, /* start connecting to this */ + const Curl_addrinfo *ai, /* start connecting to this */ long timeout_ms, bool *connected); @@ -676,7 +676,7 @@ static void nosigpipe(struct connectdata *conn, having connected if used from the multi interface. */ static curl_socket_t singleipconnect(struct connectdata *conn, - Curl_addrinfo *ai, + const Curl_addrinfo *ai, long timeout_ms, bool *connected) { @@ -778,7 +778,7 @@ singleipconnect(struct connectdata *conn, */ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ - struct Curl_dns_entry *remotehost, /* use this one */ + const struct Curl_dns_entry *remotehost, /* use this one */ curl_socket_t *sockconn, /* the connected socket */ Curl_addrinfo **addr, /* the one we used */ bool *connected) /* really connected? */ diff --git a/lib/connect.h b/lib/connect.h index 0f593817f9..599572b271 100644 --- a/lib/connect.h +++ b/lib/connect.h @@ -31,7 +31,7 @@ CURLcode Curl_is_connected(struct connectdata *conn, bool *connected); CURLcode Curl_connecthost(struct connectdata *conn, - struct Curl_dns_entry *host, /* connect to this */ + const struct Curl_dns_entry *host, /* connect to this */ curl_socket_t *sockconn, /* not set if error */ Curl_addrinfo **addr, /* the one we used */ bool *connected /* truly connected? */