mirror of
https://github.com/curl/curl.git
synced 2026-05-01 22:07:53 +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
|
|
@ -43,13 +43,13 @@ static void t1663_parse(const char *input_data,
|
|||
const char *exp_dev,
|
||||
const char *exp_iface,
|
||||
const char *exp_host,
|
||||
CURLcode exp_rc)
|
||||
CURLcode result_exp)
|
||||
{
|
||||
char *dev = NULL;
|
||||
char *iface = NULL;
|
||||
char *host = NULL;
|
||||
CURLcode rc = Curl_parse_interface(input_data, &dev, &iface, &host);
|
||||
fail_unless(rc == exp_rc, "Curl_parse_interface() failed");
|
||||
CURLcode result = Curl_parse_interface(input_data, &dev, &iface, &host);
|
||||
fail_unless(result == result_exp, "Curl_parse_interface() failed");
|
||||
|
||||
fail_unless(!!exp_dev == !!dev, "dev expectation failed.");
|
||||
fail_unless(!!exp_iface == !!iface, "iface expectation failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue