mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +03:00
tests: make the unit test result type CURLcode
Before this patch, the result code was a mixture of `int` and `CURLcode`. Also adjust casts and fix a couple of minor issues found along the way. Cherry-picked from #13489 Closes #13600
This commit is contained in:
parent
dad03dc593
commit
25cbc2f79a
221 changed files with 619 additions and 616 deletions
|
|
@ -136,7 +136,7 @@ char *hexdump(const unsigned char *buffer, size_t len)
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
char *URL;
|
||||
int result;
|
||||
CURLcode result;
|
||||
|
||||
#ifdef O_BINARY
|
||||
# ifdef __HIGHC__
|
||||
|
|
@ -185,5 +185,5 @@ int main(int argc, char **argv)
|
|||
|
||||
/* Regular program status codes are limited to 0..127 and 126 and 127 have
|
||||
* special meanings by the shell, so limit a normal return code to 125 */
|
||||
return result <= 125 ? result : 125;
|
||||
return (int)result <= 125 ? (int)result : 125;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue