changed the test() function to return type int

This commit is contained in:
Daniel Stenberg 2004-02-05 12:34:17 +00:00
parent a271cfb697
commit a5c4442ebf
11 changed files with 12 additions and 13 deletions

View File

@ -6,7 +6,7 @@ extern void curl_memdebug(const char *);
#endif
/* test is provided in the test code file */
CURLcode test(char *url);
int test(char *url);
char *arg2=NULL;

View File

@ -1,6 +1,6 @@
#include "test.h"
CURLcode test(char *URL)
int test(char *URL)
{
CURLcode res;
CURL *curl = curl_easy_init();

View File

@ -4,7 +4,7 @@
* Get a single URL without select().
*/
CURLcode test(char *URL)
int test(char *URL)
{
CURL *c;
CURLM *m;

View File

@ -14,7 +14,7 @@
* auth info.
*/
CURLcode test(char *URL)
int test(char *URL)
{
CURL *c;
CURLM *m;
@ -82,6 +82,6 @@ CURLcode test(char *URL)
curl_easy_cleanup(c);
curl_multi_cleanup(m);
return 0;
return CURLE_OK;
}

View File

@ -13,7 +13,7 @@
* Use multi interface to get document over proxy with bad port number.
* This caused the interface to "hang" in libcurl 7.10.2.
*/
CURLcode test(char *URL)
int test(char *URL)
{
CURL *c;
CURLcode ret=CURLE_OK;

View File

@ -34,7 +34,7 @@
* Example based on source code provided by Erick Nuwendam. Thanks!
*/
CURLcode test(char *URL)
int test(char *URL)
{
CURL *curl;
CURLcode res;

View File

@ -127,7 +127,7 @@ char *suburl(char *base, int i)
/* test function */
CURLcode test(char *URL)
int test(char *URL)
{
CURLcode res;
CURLSHcode scode;

View File

@ -1,6 +1,6 @@
#include "test.h"
CURLcode test(char *URL)
int test(char *URL)
{
CURL* curls;
CURLM* multi;

View File

@ -24,7 +24,7 @@ static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
return -1; /* no more data left to deliver */
}
CURLcode test(char *URL)
int test(char *URL)
{
CURL *curl;
CURLcode res=CURLE_OK;

View File

@ -159,8 +159,7 @@ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm)
return CURLE_OK ;
}
CURLcode test(char *URL)
int test(char *URL)
{
CURLM* multi;
sslctxparm p;

View File

@ -32,7 +32,7 @@ static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
return 0; /* no more data left to deliver */
}
CURLcode test(char *URL)
int test(char *URL)
{
CURL *curl;
CURLcode res=CURLE_OK;