mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:23:32 +03:00
tests: rename CURLMcode variables to mresult
This commit is contained in:
parent
0a26e3a660
commit
56f600ec23
255 changed files with 1771 additions and 1772 deletions
|
|
@ -58,7 +58,7 @@ static CURLcode test_lib757(const char *URL)
|
|||
curl_mime *mime1 = NULL;
|
||||
curl_mime *mime2 = NULL;
|
||||
curl_mimepart *part;
|
||||
CURLcode res = TEST_ERR_FAILURE;
|
||||
CURLcode result = TEST_ERR_FAILURE;
|
||||
|
||||
/*
|
||||
* Check proper rewind when reusing a mime structure.
|
||||
|
|
@ -90,13 +90,13 @@ static CURLcode test_lib757(const char *URL)
|
|||
/* Use first mime structure as top level MIME POST. */
|
||||
curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime1);
|
||||
|
||||
/* Perform the request, res gets the return code */
|
||||
res = curl_easy_perform(curl);
|
||||
/* Perform the request, result gets the return code */
|
||||
result = curl_easy_perform(curl);
|
||||
|
||||
/* Check for errors */
|
||||
if(res != CURLE_OK)
|
||||
if(result != CURLE_OK)
|
||||
curl_mfprintf(stderr, "curl_easy_perform() 1 failed: %s\n",
|
||||
curl_easy_strerror(res));
|
||||
curl_easy_strerror(result));
|
||||
else {
|
||||
/* phase two, create a mime struct using the mime1 handle */
|
||||
mime2 = curl_mime_init(curl);
|
||||
|
|
@ -106,21 +106,21 @@ static CURLcode test_lib757(const char *URL)
|
|||
curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime2);
|
||||
|
||||
/* Reuse previous mime structure as a child. */
|
||||
res = curl_mime_subparts(part, mime1);
|
||||
result = curl_mime_subparts(part, mime1);
|
||||
|
||||
if(res != CURLE_OK)
|
||||
if(result != CURLE_OK)
|
||||
curl_mfprintf(stderr, "curl_mime_subparts() failed: %sn",
|
||||
curl_easy_strerror(res));
|
||||
curl_easy_strerror(result));
|
||||
else {
|
||||
mime1 = NULL;
|
||||
|
||||
/* Perform the request, res gets the return code */
|
||||
res = curl_easy_perform(curl);
|
||||
/* Perform the request, result gets the return code */
|
||||
result = curl_easy_perform(curl);
|
||||
|
||||
/* Check for errors */
|
||||
if(res != CURLE_OK)
|
||||
if(result != CURLE_OK)
|
||||
curl_mfprintf(stderr, "curl_easy_perform() 2 failed: %s\n",
|
||||
curl_easy_strerror(res));
|
||||
curl_easy_strerror(result));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -129,5 +129,5 @@ test_cleanup:
|
|||
curl_mime_free(mime1);
|
||||
curl_mime_free(mime2);
|
||||
curl_global_cleanup();
|
||||
return res;
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue