From: Daniel Stenberg Date: Wed, 23 Jun 2004 06:14:23 +0000 (+0000) Subject: prevent a warning X-Git-Tag: curl-7_12_1~221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f1eefd03f19814ac6f71adb35b3ad0e5e08f919;p=thirdparty%2Fcurl.git prevent a warning --- diff --git a/lib/connect.c b/lib/connect.c index ed5bc80ac2..6d953cad3a 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -608,6 +608,8 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ /* * Connecting with a getaddrinfo chain */ + (void)port; /* the port number is already included in the getaddrinfo + struct */ for (curr_addr = remotehost->addr, aliasindex=0; curr_addr; curr_addr = curr_addr->ai_next, aliasindex++) { sockfd = socket(curr_addr->ai_family, curr_addr->ai_socktype,