mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:03:38 +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
|
|
@ -28,11 +28,11 @@
|
|||
|
||||
static CURLcode test_lib512(const char *URL)
|
||||
{
|
||||
CURLcode code;
|
||||
CURLcode result;
|
||||
int rc = 99;
|
||||
|
||||
code = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(code == CURLE_OK) {
|
||||
result = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(result == CURLE_OK) {
|
||||
CURL *curl = curl_easy_init();
|
||||
if(curl) {
|
||||
CURL *curl2;
|
||||
|
|
@ -43,11 +43,11 @@ static CURLcode test_lib512(const char *URL)
|
|||
curl2 = curl_easy_duphandle(curl);
|
||||
if(curl2) {
|
||||
|
||||
code = curl_easy_setopt(curl2, CURLOPT_URL, URL);
|
||||
if(code == CURLE_OK) {
|
||||
result = curl_easy_setopt(curl2, CURLOPT_URL, URL);
|
||||
if(result == CURLE_OK) {
|
||||
|
||||
code = curl_easy_perform(curl2);
|
||||
if(code == CURLE_OK)
|
||||
result = curl_easy_perform(curl2);
|
||||
if(result == CURLE_OK)
|
||||
rc = 0;
|
||||
else
|
||||
rc = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue