mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:03:33 +03:00
lib: reserve 'result' for CURLcode
For consistency, whereever we use a local variable named 'result' that is a CURLcode type. Make other types use other names. Closes #21244
This commit is contained in:
parent
4cb4f9d602
commit
9f5d1a38d1
9 changed files with 66 additions and 67 deletions
|
|
@ -1135,7 +1135,7 @@ static CURLcode cr_connect(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
(struct rustls_ssl_backend_data *)connssl->backend;
|
||||
const struct rustls_connection *rconn = NULL;
|
||||
CURLcode tmperr = CURLE_OK;
|
||||
int result;
|
||||
CURLcode result;
|
||||
bool wants_read;
|
||||
bool wants_write;
|
||||
|
||||
|
|
@ -1155,12 +1155,12 @@ static CURLcode cr_connect(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
#endif /* USE_ECH */
|
||||
|
||||
if(!backend->conn) {
|
||||
result = cr_init_backend(cf, data,
|
||||
(struct rustls_ssl_backend_data *)connssl->backend);
|
||||
result =
|
||||
cr_init_backend(cf, data,
|
||||
(struct rustls_ssl_backend_data *)connssl->backend);
|
||||
CURL_TRC_CF(data, cf, "cr_connect, init backend -> %d", result);
|
||||
if(result != CURLE_OK) {
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
connssl->state = ssl_connection_negotiating;
|
||||
}
|
||||
rconn = backend->conn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue