mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:43:32 +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
|
|
@ -88,7 +88,7 @@ UNITTEST_START
|
|||
for(i = 0; i < NUMTESTS; i++) {
|
||||
FILE *fp;
|
||||
struct dynbuf buf;
|
||||
int len = 4096;
|
||||
size_t len = 4096;
|
||||
char *line;
|
||||
Curl_dyn_init(&buf, len);
|
||||
|
||||
|
|
@ -169,7 +169,7 @@ UNITTEST_START
|
|||
fclose(fp);
|
||||
fprintf(stderr, "OK\n");
|
||||
}
|
||||
return rc;
|
||||
return (CURLcode)rc;
|
||||
UNITTEST_STOP
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue