mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:53:43 +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
|
|
@ -27,7 +27,7 @@
|
|||
#include "warnless.h"
|
||||
#include "memdebug.h"
|
||||
|
||||
int test(char *URL)
|
||||
CURLcode test(char *URL)
|
||||
{
|
||||
CURLcode ret = CURLE_OK;
|
||||
CURL *hnd;
|
||||
|
|
@ -60,5 +60,5 @@ int test(char *URL)
|
|||
curl_easy_cleanup(hnd);
|
||||
}
|
||||
curl_global_cleanup();
|
||||
return (int)ret;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue