From b12fef3f3137bc606d283a2e527dd9050edf2b12 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 27 Feb 2008 09:06:15 +0000 Subject: Michal Marek's cleanup of how curl_easy_setopt() is used in examples and test code. Thanks to his curl_easy_setopt() typechecker work... --- tests/libtest/lib506.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/libtest/lib506.c') diff --git a/tests/libtest/lib506.c b/tests/libtest/lib506.c index eaf96d2e9..4bec2884f 100644 --- a/tests/libtest/lib506.c +++ b/tests/libtest/lib506.c @@ -107,10 +107,10 @@ static void *fire(void *ptr) headers = sethost(NULL); curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); - curl_easy_setopt(curl, CURLOPT_HTTPHEADER, (void*)headers); - curl_easy_setopt(curl, CURLOPT_URL, (void*)tdata->url); + curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); + curl_easy_setopt(curl, CURLOPT_URL, tdata->url); printf( "CURLOPT_SHARE\n" ); - curl_easy_setopt(curl, CURLOPT_SHARE, (void*)tdata->share); + curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share); printf( "PERFORM\n" ); code = curl_easy_perform(curl); @@ -222,7 +222,7 @@ int test(char *URL) url = suburl( URL, i ); headers = sethost( NULL ); - curl_easy_setopt( curl, CURLOPT_HTTPHEADER, (void*)headers ); + curl_easy_setopt( curl, CURLOPT_HTTPHEADER, headers ); curl_easy_setopt( curl, CURLOPT_URL, url ); printf( "CURLOPT_SHARE\n" ); curl_easy_setopt( curl, CURLOPT_SHARE, share ); -- cgit v1.2.3