mirror of
https://github.com/curl/curl.git
synced 2026-08-24 18:23:33 +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
|
|
@ -307,15 +307,15 @@ static CURLMcode t758_checkFdSet(CURLM *multi, struct t758_Sockets *sockets,
|
|||
const char *name)
|
||||
{
|
||||
int i;
|
||||
CURLMcode result = CURLM_OK;
|
||||
CURLMcode mresult = CURLM_OK;
|
||||
for(i = 0; i < sockets->count; ++i) {
|
||||
if(FD_ISSET(sockets->sockets[i], fdset)) {
|
||||
result = t758_saction(multi, sockets->sockets[i], evBitmask, name);
|
||||
if(result)
|
||||
mresult = t758_saction(multi, sockets->sockets[i], evBitmask, name);
|
||||
if(mresult)
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
return mresult;
|
||||
}
|
||||
|
||||
static CURLcode t758_one(const char *URL, int timer_fail_at,
|
||||
|
|
@ -485,14 +485,14 @@ test_cleanup:
|
|||
|
||||
static CURLcode test_lib758(const char *URL)
|
||||
{
|
||||
CURLcode rc;
|
||||
CURLcode result;
|
||||
/* rerun the same transfer multiple times and make it fail in different
|
||||
callback calls */
|
||||
rc = t758_one(URL, 0, 0); /* no callback fails */
|
||||
if(rc)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t758_tag(), rc);
|
||||
result = t758_one(URL, 0, 0); /* no callback fails */
|
||||
if(result)
|
||||
curl_mfprintf(stderr, "%s FAILED: %d\n", t758_tag(), result);
|
||||
|
||||
return rc;
|
||||
return result;
|
||||
}
|
||||
|
||||
#else /* T578_ENABLED */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue