summaryrefslogtreecommitdiff
path: root/lib/pingpong.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-02-12 18:08:48 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-02-12 18:08:48 +0000
commitb56c9eb48e3cad89d35963f0934571bf5de48ab2 (patch)
tree18f562555fbb0892ce15b25d293ea1edef9a0c95 /lib/pingpong.c
parent586f5d36147478d58ea6204bfe8368364663d926 (diff)
downloadcurl-b56c9eb48e3cad89d35963f0934571bf5de48ab2.tar.gz
pingpong: Optimised the endofresp() function
Reworked the pp->endofresp() function so that the conndata, line and line length are passed down to it just as with Curl_client_write() rather than each implementation of the function having to query these values. Additionally changed the int return type to bool as this is more representative of the function's usage.
Diffstat (limited to 'lib/pingpong.c')
-rw-r--r--lib/pingpong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c
index 16b4ad37e..330b47f76 100644
--- a/lib/pingpong.c
+++ b/lib/pingpong.c
@@ -395,7 +395,7 @@ CURLcode Curl_pp_readresp(curl_socket_t sockfd,
if(result)
return result;
- if(pp->endofresp(pp, code)) {
+ if(pp->endofresp(conn, pp->linestart_resp, perline, code)) {
/* This is the end of the last line, copy the last line to the
start of the buffer and zero terminate, for old times sake (and
krb4)! */