mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:43:31 +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
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
struct pair {
|
||||
const char *in;
|
||||
CURLcode *exp;
|
||||
CURLcode *result_exp;
|
||||
};
|
||||
|
||||
static CURLcode test_lib1597(const char *URL)
|
||||
|
|
@ -95,7 +95,7 @@ static CURLcode test_lib1597(const char *URL)
|
|||
/* Run the tests. */
|
||||
for(i = 0; prots[i].in; i++) {
|
||||
result = curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR, prots[i].in);
|
||||
if(result != *prots[i].exp) {
|
||||
if(result != *prots[i].result_exp) {
|
||||
curl_mprintf("unexpectedly '%s' returned %d\n", prots[i].in, result);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue