From a5c4442ebf63c3583ae7c2000376158e7efaf5e9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 5 Feb 2004 12:34:17 +0000 Subject: [PATCH] changed the test() function to return type int --- tests/libtest/first.c | 2 +- tests/libtest/lib501.c | 2 +- tests/libtest/lib502.c | 2 +- tests/libtest/lib503.c | 4 ++-- tests/libtest/lib504.c | 2 +- tests/libtest/lib505.c | 2 +- tests/libtest/lib506.c | 2 +- tests/libtest/lib507.c | 2 +- tests/libtest/lib508.c | 2 +- tests/libtest/lib509.c | 3 +-- 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 6b9af9bcf1..d8bfdd19a2 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 2ed1a9ae4c..b0ff0a7315 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 55ca6c5db7..ac298f0fc7 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 f324b35d67..f74ad3f38e 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 0a9aff2cc3..f2a202199b 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 0efaf76cc1..131df7856c 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 998c1370cc..40f7261788 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 14004f3d9f..f45169496f 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 e6798da2e5..6a826b7b0d 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 d9774d129a..0f956ebfb4 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 1cf440bd3b..051a773c53 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; -- GitLab