mirror of
https://github.com/curl/curl.git
synced 2026-08-26 16:03:33 +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
|
|
@ -35,16 +35,16 @@ static CURLcode test_lib1939(const char *URL)
|
|||
if(multi) {
|
||||
curl = curl_easy_init();
|
||||
if(curl) {
|
||||
CURLcode c;
|
||||
CURLcode result;
|
||||
CURLMcode mresult;
|
||||
|
||||
/* Crash only happens when using HTTPS */
|
||||
c = curl_easy_setopt(curl, CURLOPT_URL, URL);
|
||||
if(!c)
|
||||
result = curl_easy_setopt(curl, CURLOPT_URL, URL);
|
||||
if(!result)
|
||||
/* Any old HTTP tunneling proxy will do here */
|
||||
c = curl_easy_setopt(curl, CURLOPT_PROXY, libtest_arg2);
|
||||
result = curl_easy_setopt(curl, CURLOPT_PROXY, libtest_arg2);
|
||||
|
||||
if(!c) {
|
||||
if(!result) {
|
||||
|
||||
/* We are going to drive the transfer using multi interface here,
|
||||
because we want to stop during the middle. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue