mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:23:36 +03:00
lib: reduce use of data->conn->
If there are more than two of them in a function, use a local 'conn' variable instead. Closes #19063
This commit is contained in:
parent
9441127394
commit
ae5fb4188d
6 changed files with 62 additions and 50 deletions
|
|
@ -3061,12 +3061,13 @@ static CURLcode ssh_pollset(struct Curl_easy *data,
|
|||
struct easy_pollset *ps)
|
||||
{
|
||||
int flags = 0;
|
||||
if(data->conn->waitfor & KEEP_RECV)
|
||||
struct connectdata *conn = data->conn;
|
||||
if(conn->waitfor & KEEP_RECV)
|
||||
flags |= CURL_POLL_IN;
|
||||
if(data->conn->waitfor & KEEP_SEND)
|
||||
if(conn->waitfor & KEEP_SEND)
|
||||
flags |= CURL_POLL_OUT;
|
||||
return flags ?
|
||||
Curl_pollset_change(data, ps, data->conn->sock[FIRSTSOCKET], flags, 0) :
|
||||
Curl_pollset_change(data, ps, conn->sock[FIRSTSOCKET], flags, 0) :
|
||||
CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue