mirror of
https://github.com/curl/curl.git
synced 2026-07-28 13:33:06 +03:00
tests: rename more CURLcode variables to result
For consistency. Also: - one remaining in `src/tool_writeout.c`. - replace casting an `int` to `CURLcode`. - lib758: rename `CURLMcode` `result` to `mresult`. - move literals to the right side of if expressions. Follow-up tod0dc6e2ec0#20426 Follow-up to56f600ec23Closes #20432
This commit is contained in:
parent
26c39d8df1
commit
2da1bbca96
33 changed files with 307 additions and 303 deletions
|
|
@ -33,13 +33,13 @@ static size_t write_tse_cb(char *ptr, size_t size, size_t nmemb, void *opaque)
|
|||
(void)ptr;
|
||||
if(!tse_found_tls_session) {
|
||||
struct curl_tlssessioninfo *tlssession;
|
||||
CURLcode rc;
|
||||
CURLcode result;
|
||||
|
||||
rc = curl_easy_getinfo(curl, CURLINFO_TLS_SSL_PTR, &tlssession);
|
||||
if(rc) {
|
||||
result = curl_easy_getinfo(curl, CURLINFO_TLS_SSL_PTR, &tlssession);
|
||||
if(result) {
|
||||
curl_mfprintf(stderr, "curl_easy_getinfo(CURLINFO_TLS_SSL_PTR) "
|
||||
"failed: %s\n", curl_easy_strerror(rc));
|
||||
return rc;
|
||||
"failed: %s\n", curl_easy_strerror(result));
|
||||
return result;
|
||||
}
|
||||
if(tlssession->backend == CURLSSLBACKEND_NONE) {
|
||||
curl_mfprintf(stderr, "curl_easy_getinfo(CURLINFO_TLS_SSL_PTR) "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue