Commit a5c4442e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

changed the test() function to return type int

parent a271cfb6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

+1 −1
Original line number Diff line number Diff line
#include "test.h"

CURLcode test(char *URL)
int test(char *URL)
{
  CURLcode res;
  CURL *curl = curl_easy_init();
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
 * Get a single URL without select().
 */

CURLcode test(char *URL)
int test(char *URL)
{
  CURL *c;
  CURLM *m;
+2 −2
Original line number Diff line number Diff line
@@ -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;
}
+1 −1
Original line number Diff line number Diff line
@@ -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;
Loading