tests: rename CURLMcode variables to mresult

This commit is contained in:
Daniel Stenberg 2025-12-16 13:40:02 +01:00
parent 0a26e3a660
commit 56f600ec23
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
255 changed files with 1771 additions and 1772 deletions

View file

@ -28,7 +28,7 @@
static CURLcode t1606_setup(struct Curl_easy **easy)
{
CURLcode res = CURLE_OK;
CURLcode result = CURLE_OK;
global_init(CURL_GLOBAL_ALL);
*easy = curl_easy_init();
@ -36,7 +36,7 @@ static CURLcode t1606_setup(struct Curl_easy **easy)
curl_global_cleanup();
return CURLE_OUT_OF_MEMORY;
}
return res;
return result;
}
static void t1606_stop(struct Curl_easy *easy)
@ -53,7 +53,7 @@ static int runawhile(struct Curl_easy *easy,
{
int counter = 1;
struct curltime now = { 1, 0 };
CURLcode res;
CURLcode result;
int finaltime;
curl_easy_setopt(easy, CURLOPT_LOW_SPEED_LIMIT, speed_limit);
@ -63,8 +63,8 @@ static int runawhile(struct Curl_easy *easy,
do {
/* fake the current transfer speed */
easy->progress.current_speed = speed;
res = pgrs_speedcheck(easy, &now);
if(res)
result = pgrs_speedcheck(easy, &now);
if(result)
break;
/* step the time */
now.tv_sec = ++counter;