diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-05 12:34:17 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-05 12:34:17 +0000 |
commit | a5c4442ebf63c3583ae7c2000376158e7efaf5e9 (patch) | |
tree | 786ad1a3eeecb82dbc30845993f73e052ad92397 /tests | |
parent | a271cfb69714877e1f6b09c2d132fabdf1d2224c (diff) |
changed the test() function to return type int
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/first.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib501.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib502.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib503.c | 4 | ||||
-rw-r--r-- | tests/libtest/lib504.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib505.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib506.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib507.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib508.c | 2 | ||||
-rw-r--r-- | tests/libtest/lib509.c | 3 | ||||
-rw-r--r-- | tests/libtest/lib510.c | 2 |
11 files changed, 12 insertions, 13 deletions
diff --git a/tests/libtest/first.c b/tests/libtest/first.c index 6b9af9bcf..d8bfdd19a 100644 --- a/tests/libtest/first.c +++ b/tests/libtest/first.c @@ -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; diff --git a/tests/libtest/lib501.c b/tests/libtest/lib501.c index 2ed1a9ae4..b0ff0a731 100644 --- a/tests/libtest/lib501.c +++ b/tests/libtest/lib501.c @@ -1,6 +1,6 @@ #include "test.h" -CURLcode test(char *URL) +int test(char *URL) { CURLcode res; CURL *curl = curl_easy_init(); diff --git a/tests/libtest/lib502.c b/tests/libtest/lib502.c index 55ca6c5db..ac298f0fc 100644 --- a/tests/libtest/lib502.c +++ b/tests/libtest/lib502.c @@ -4,7 +4,7 @@ * Get a single URL without select(). */ -CURLcode test(char *URL) +int test(char *URL) { CURL *c; CURLM *m; diff --git a/tests/libtest/lib503.c b/tests/libtest/lib503.c index f324b35d6..f74ad3f38 100644 --- a/tests/libtest/lib503.c +++ b/tests/libtest/lib503.c @@ -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; } diff --git a/tests/libtest/lib504.c b/tests/libtest/lib504.c index 0a9aff2cc..f2a202199 100644 --- a/tests/libtest/lib504.c +++ b/tests/libtest/lib504.c @@ -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; diff --git a/tests/libtest/lib505.c b/tests/libtest/lib505.c index 0efaf76cc..131df7856 100644 --- a/tests/libtest/lib505.c +++ b/tests/libtest/lib505.c @@ -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; diff --git a/tests/libtest/lib506.c b/tests/libtest/lib506.c index 998c1370c..40f726178 100644 --- a/tests/libtest/lib506.c +++ b/tests/libtest/lib506.c @@ -127,7 +127,7 @@ char *suburl(char *base, int i) /* test function */ -CURLcode test(char *URL) +int test(char *URL) { CURLcode res; CURLSHcode scode; diff --git a/tests/libtest/lib507.c b/tests/libtest/lib507.c index 14004f3d9..f45169496 100644 --- a/tests/libtest/lib507.c +++ b/tests/libtest/lib507.c @@ -1,6 +1,6 @@ #include "test.h" -CURLcode test(char *URL) +int test(char *URL) { CURL* curls; CURLM* multi; diff --git a/tests/libtest/lib508.c b/tests/libtest/lib508.c index e6798da2e..6a826b7b0 100644 --- a/tests/libtest/lib508.c +++ b/tests/libtest/lib508.c @@ -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; diff --git a/tests/libtest/lib509.c b/tests/libtest/lib509.c index d9774d129..0f956ebfb 100644 --- a/tests/libtest/lib509.c +++ b/tests/libtest/lib509.c @@ -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; diff --git a/tests/libtest/lib510.c b/tests/libtest/lib510.c index 1cf440bd3..051a773c5 100644 --- a/tests/libtest/lib510.c +++ b/tests/libtest/lib510.c @@ -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; |