From db6dc49b0b2e23c0f74daddc25317fea702d6eab Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 26 Mar 2004 07:03:30 +0000 Subject: removed the ip number from the notcpdelay function --- lib/connect.c | 9 ++++----- 1 file 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)); -- cgit v1.2.3