diff --git a/tests/client/hx_download.c b/tests/client/hx_download.c index e168b93daf..59e2b036d1 100644 --- a/tests/client/hx_download.c +++ b/tests/client/hx_download.c @@ -129,7 +129,7 @@ static int setup_hx_download(CURL *hnd, const char *url, struct transfer_d *t, curl_easy_setopt(hnd, CURLOPT_XFERINFOFUNCTION, my_progress_d_cb); curl_easy_setopt(hnd, CURLOPT_XFERINFODATA, t); if(use_earlydata) - curl_easy_setopt(hnd, CURLOPT_SSL_OPTIONS, (long)CURLSSLOPT_EARLYDATA); + curl_easy_setopt(hnd, CURLOPT_SSL_OPTIONS, CURLSSLOPT_EARLYDATA); if(forbid_reuse_d) curl_easy_setopt(hnd, CURLOPT_FORBID_REUSE, 1L); if(host) diff --git a/tests/client/hx_upload.c b/tests/client/hx_upload.c index 3cefdacfbf..0fd25b0fa1 100644 --- a/tests/client/hx_upload.c +++ b/tests/client/hx_upload.c @@ -149,7 +149,7 @@ static int setup_hx_upload(CURL *hnd, const char *url, struct transfer_u *t, curl_easy_setopt(hnd, CURLOPT_WRITEFUNCTION, my_write_u_cb); curl_easy_setopt(hnd, CURLOPT_WRITEDATA, t); if(use_earlydata) - curl_easy_setopt(hnd, CURLOPT_SSL_OPTIONS, (long)CURLSSLOPT_EARLYDATA); + curl_easy_setopt(hnd, CURLOPT_SSL_OPTIONS, CURLSSLOPT_EARLYDATA); if(!t->method || !strcmp("PUT", t->method)) curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1L);