mirror of
https://github.com/curl/curl.git
synced 2026-07-28 08:03:05 +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
|
|
@ -65,7 +65,7 @@ static void parse_success(const struct tcase *t)
|
|||
struct h1_req_parser p;
|
||||
const uint8_t *buf;
|
||||
size_t buflen, i, in_len, in_consumed;
|
||||
CURLcode err;
|
||||
CURLcode result;
|
||||
size_t nread;
|
||||
|
||||
Curl_h1_req_parse_init(&p, 1024);
|
||||
|
|
@ -74,10 +74,10 @@ static void parse_success(const struct tcase *t)
|
|||
buf = (const uint8_t *)t->input[i];
|
||||
buflen = strlen(t->input[i]);
|
||||
in_len += buflen;
|
||||
err = Curl_h1_req_parse_read(&p, buf, buflen, t->default_scheme,
|
||||
t->custom_method, 0, &nread);
|
||||
if(err) {
|
||||
curl_mfprintf(stderr, "got err %d parsing: '%s'\n", err, buf);
|
||||
result = Curl_h1_req_parse_read(&p, buf, buflen, t->default_scheme,
|
||||
t->custom_method, 0, &nread);
|
||||
if(result) {
|
||||
curl_mfprintf(stderr, "got result %d parsing: '%s'\n", result, buf);
|
||||
fail("error consuming");
|
||||
}
|
||||
in_consumed += (size_t)nread;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue