mirror of
https://github.com/curl/curl.git
synced 2026-05-18 15:56:21 +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
|
|
@ -185,7 +185,7 @@ static int appenddata(char **dst_buf, /* dest buffer */
|
|||
static int decodedata(char **buf, /* dest buffer */
|
||||
size_t *len) /* dest buffer data length */
|
||||
{
|
||||
CURLcode error = CURLE_OK;
|
||||
CURLcode result = CURLE_OK;
|
||||
unsigned char *buf64 = NULL;
|
||||
size_t src_len = 0;
|
||||
|
||||
|
|
@ -193,8 +193,8 @@ static int decodedata(char **buf, /* dest buffer */
|
|||
return GPE_OK;
|
||||
|
||||
/* base64 decode the given buffer */
|
||||
error = curlx_base64_decode(*buf, &buf64, &src_len);
|
||||
if(error)
|
||||
result = curlx_base64_decode(*buf, &buf64, &src_len);
|
||||
if(result)
|
||||
return GPE_OUT_OF_MEMORY;
|
||||
|
||||
if(!src_len) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue