mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:03:32 +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
|
|
@ -60,7 +60,7 @@ static int loadfile(const char *filename, void **filedata, size_t *filesize)
|
|||
|
||||
static CURLcode test_cert_blob(const char *url, const char *cafile)
|
||||
{
|
||||
CURLcode code = CURLE_OUT_OF_MEMORY;
|
||||
CURLcode result = CURLE_OUT_OF_MEMORY;
|
||||
CURL *curl;
|
||||
struct curl_blob blob;
|
||||
size_t certsize;
|
||||
|
|
@ -84,11 +84,11 @@ static CURLcode test_cert_blob(const char *url, const char *cafile)
|
|||
blob.flags = CURL_BLOB_COPY;
|
||||
curl_easy_setopt(curl, CURLOPT_CAINFO_BLOB, &blob);
|
||||
curlx_free(certdata);
|
||||
code = curl_easy_perform(curl);
|
||||
result = curl_easy_perform(curl);
|
||||
}
|
||||
curl_easy_cleanup(curl);
|
||||
|
||||
return code;
|
||||
return result;
|
||||
}
|
||||
|
||||
static CURLcode test_lib678(const char *URL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue