mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:53:46 +03:00
unit1302.c drop redundant result casts
This commit is contained in:
parent
d0377cf134
commit
dc8b2bb85d
1 changed files with 2 additions and 3 deletions
|
|
@ -144,8 +144,7 @@ static CURLcode test_unit1302(const char *arg)
|
||||||
/* then verify decode */
|
/* then verify decode */
|
||||||
result = curlx_base64_decode(e->output, &decoded, &dlen);
|
result = curlx_base64_decode(e->output, &decoded, &dlen);
|
||||||
if(result != CURLE_OK) {
|
if(result != CURLE_OK) {
|
||||||
curl_mfprintf(stderr, "Test %u URL decode returned %d\n", i,
|
curl_mfprintf(stderr, "Test %u URL decode returned %d\n", i, result);
|
||||||
(int)result);
|
|
||||||
unitfail++;
|
unitfail++;
|
||||||
}
|
}
|
||||||
if(dlen != e->ilen) {
|
if(dlen != e->ilen) {
|
||||||
|
|
@ -191,7 +190,7 @@ static CURLcode test_unit1302(const char *arg)
|
||||||
if(result != CURLE_BAD_CONTENT_ENCODING) {
|
if(result != CURLE_BAD_CONTENT_ENCODING) {
|
||||||
curl_mfprintf(stderr, "Test %u URL bad decoded badly. "
|
curl_mfprintf(stderr, "Test %u URL bad decoded badly. "
|
||||||
"Returned '%d', expected '%d'\n",
|
"Returned '%d', expected '%d'\n",
|
||||||
i, (int)result, CURLE_BAD_CONTENT_ENCODING);
|
i, result, CURLE_BAD_CONTENT_ENCODING);
|
||||||
unitfail++;
|
unitfail++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue