mirror of
https://github.com/curl/curl.git
synced 2026-07-25 14:27:23 +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
|
|
@ -48,14 +48,14 @@ static CURLcode test_unit1608(const char *arg)
|
|||
UNITTEST_BEGIN(t1608_setup())
|
||||
|
||||
int i;
|
||||
CURLcode code;
|
||||
CURLcode result;
|
||||
struct Curl_addrinfo *addrhead = addrs;
|
||||
|
||||
struct Curl_easy *easy = curl_easy_init();
|
||||
abort_unless(easy, "out of memory");
|
||||
|
||||
code = curl_easy_setopt(easy, CURLOPT_DNS_SHUFFLE_ADDRESSES, 1L);
|
||||
abort_unless(code == CURLE_OK, "curl_easy_setopt failed");
|
||||
result = curl_easy_setopt(easy, CURLOPT_DNS_SHUFFLE_ADDRESSES, 1L);
|
||||
abort_unless(result == CURLE_OK, "curl_easy_setopt failed");
|
||||
|
||||
/* Shuffle repeatedly and make sure that the list changes */
|
||||
for(i = 0; i < 10; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue