aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connect.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 7ac47bff2..b5c90f589 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -478,8 +478,7 @@ CURLcode Curl_is_connected(struct connectdata *conn,
}
static void Curl_setNoDelay(struct connectdata *conn,
- curl_socket_t sockfd,
- int ip)
+ curl_socket_t sockfd)
{
#ifdef TCP_NODELAY
struct SessionHandle *data= conn->data;
@@ -488,7 +487,7 @@ static void Curl_setNoDelay(struct connectdata *conn,
infof(data, "Could not set TCP_NODELAY: %s\n",
Curl_strerror(conn, Curl_ourerrno()));
else
- infof(data,"TCP_NODELAY set for IPv%d\n", ip);
+ infof(data,"TCP_NODELAY set\n");
#else
(void)conn;
(void)sockfd;
@@ -575,7 +574,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
continue;
else if(data->tcp_nodelay)
- Curl_setNoDelay(conn, sockfd, 6);
+ Curl_setNoDelay(conn, sockfd);
#else
/*
* Connecting with old style IPv4-only support
@@ -596,7 +595,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */
}
else if(data->tcp_nodelay)
- Curl_setNoDelay(conn, sockfd, 4);
+ Curl_setNoDelay(conn, sockfd);
/* nasty address work before connect can be made */
memset((char *) &serv_addr, '\0', sizeof(serv_addr));