mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:53:47 +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
|
|
@ -97,7 +97,7 @@ static void t586_test_unlock(CURL *curl, curl_lock_data data, void *useptr)
|
|||
/* the dummy thread function */
|
||||
static void *t586_test_fire(void *ptr)
|
||||
{
|
||||
CURLcode code;
|
||||
CURLcode result;
|
||||
struct t586_Tdata *tdata = (struct t586_Tdata *)ptr;
|
||||
CURL *curl;
|
||||
|
||||
|
|
@ -114,11 +114,11 @@ static void *t586_test_fire(void *ptr)
|
|||
curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share);
|
||||
|
||||
curl_mprintf("PERFORM\n");
|
||||
code = curl_easy_perform(curl);
|
||||
if(code != CURLE_OK) {
|
||||
result = curl_easy_perform(curl);
|
||||
if(result != CURLE_OK) {
|
||||
int i = 0;
|
||||
curl_mfprintf(stderr, "perform URL '%s' repeat %d failed, curlcode %d\n",
|
||||
tdata->url, i, code);
|
||||
tdata->url, i, result);
|
||||
}
|
||||
|
||||
curl_mprintf("CLEANUP\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue