mirror of
https://github.com/curl/curl.git
synced 2026-08-06 06:06:15 +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
|
|
@ -224,19 +224,19 @@ static CURLcode t643_cyclic_add(void)
|
|||
CURL *curl = curl_easy_init();
|
||||
curl_mime *mime = curl_mime_init(curl);
|
||||
curl_mimepart *part = curl_mime_addpart(mime);
|
||||
CURLcode a1 = curl_mime_subparts(part, mime);
|
||||
CURLcode result = curl_mime_subparts(part, mime);
|
||||
|
||||
if(a1 == CURLE_BAD_FUNCTION_ARGUMENT) {
|
||||
if(result == CURLE_BAD_FUNCTION_ARGUMENT) {
|
||||
curl_mime *submime = curl_mime_init(curl);
|
||||
curl_mimepart *subpart = curl_mime_addpart(submime);
|
||||
|
||||
curl_mime_subparts(part, submime);
|
||||
a1 = curl_mime_subparts(subpart, mime);
|
||||
result = curl_mime_subparts(subpart, mime);
|
||||
}
|
||||
|
||||
curl_mime_free(mime);
|
||||
curl_easy_cleanup(curl);
|
||||
if(a1 != CURLE_BAD_FUNCTION_ARGUMENT)
|
||||
if(result != CURLE_BAD_FUNCTION_ARGUMENT)
|
||||
/* that should have failed */
|
||||
return TEST_ERR_FAILURE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue