diff options
Diffstat (limited to 'tests/libtest')
-rw-r--r-- | tests/libtest/lib506.c | 8 | ||||
-rw-r--r-- | tests/libtest/lib552.c | 4 |
2 files changed, 6 insertions, 6 deletions
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 ); diff --git a/tests/libtest/lib552.c b/tests/libtest/lib552.c index 8c6e2be37..3cfeffe73 100644 --- a/tests/libtest/lib552.c +++ b/tests/libtest/lib552.c @@ -67,7 +67,7 @@ void dump(const char *text, static int my_trace(CURL *handle, curl_infotype type, - unsigned char *data, size_t size, + char *data, size_t size, void *userp) { struct data *config = (struct data *)userp; @@ -100,7 +100,7 @@ int my_trace(CURL *handle, curl_infotype type, break; } - dump(text, stderr, data, size, config->trace_ascii); + dump(text, stderr, (unsigned char *)data, size, config->trace_ascii); return 0; } |