summaryrefslogtreecommitdiff
path: root/lib/pingpong.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-10-18 10:58:58 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-10-18 11:05:45 +0200
commit8a6e89a9ebbaa79a2c4e4301774770efb3d24ef7 (patch)
treee1f5912ef215b364a0be7c0609f343070ecc6efb /lib/pingpong.c
parenta05906190ca6f7d6135f82595107bcabe4b75c77 (diff)
downloadcurl-8a6e89a9ebbaa79a2c4e4301774770efb3d24ef7.tar.gz
select: switch to macros in uppercase
Curl_select_ready() was the former API that was replaced with Curl_select_check() a while back and the former arg setup was provided with a define (in order to leave existing code unmodified). Now we instead offer SOCKET_READABLE and SOCKET_WRITABLE for the most common shortcuts where only one socket is checked. They're also more visibly macros.
Diffstat (limited to 'lib/pingpong.c')
-rw-r--r--lib/pingpong.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c
index 92ff84ba3..bf2c8fd0a 100644
--- a/lib/pingpong.c
+++ b/lib/pingpong.c
@@ -108,7 +108,8 @@ CURLcode Curl_pp_statemach(struct pingpong *pp, bool block)
/* We are receiving and there is data ready in the SSL library */
rc = 1;
else
- rc = Curl_socket_ready(pp->sendleft?CURL_SOCKET_BAD:sock, /* reading */
+ rc = Curl_socket_check(pp->sendleft?CURL_SOCKET_BAD:sock, /* reading */
+ CURL_SOCKET_BAD,
pp->sendleft?sock:CURL_SOCKET_BAD, /* writing */
interval_ms);