mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:23:40 +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
|
|
@ -63,7 +63,7 @@ static CURLcode test_lib1509(const char *URL)
|
|||
easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1L);
|
||||
|
||||
code = curl_easy_perform(curl);
|
||||
if(CURLE_OK != code) {
|
||||
if(code != CURLE_OK) {
|
||||
curl_mfprintf(stderr, "%s:%d curl_easy_perform() failed, "
|
||||
"with code %d (%s)\n",
|
||||
__FILE__, __LINE__, code, curl_easy_strerror(code));
|
||||
|
|
@ -72,7 +72,7 @@ static CURLcode test_lib1509(const char *URL)
|
|||
}
|
||||
|
||||
code = curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &headerSize);
|
||||
if(CURLE_OK != code) {
|
||||
if(code != CURLE_OK) {
|
||||
curl_mfprintf(stderr, "%s:%d curl_easy_getinfo() failed, "
|
||||
"with code %d (%s)\n",
|
||||
__FILE__, __LINE__, code, curl_easy_strerror(code));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue