mirror of
https://github.com/curl/curl.git
synced 2026-08-25 13:33:36 +03:00
lib/src/docs/test: improve curl_easy_setopt() calls
Fix invokes where the argument was not the correct type. Closes #17160
This commit is contained in:
parent
179aeeaf22
commit
f9f1a15699
22 changed files with 39 additions and 34 deletions
|
|
@ -233,7 +233,7 @@ static int my_progress_cb(void *userdata,
|
|||
}
|
||||
|
||||
static int setup(CURL *hnd, const char *url, struct transfer *t,
|
||||
int http_version, struct curl_slist *host,
|
||||
long http_version, struct curl_slist *host,
|
||||
CURLSH *share, int use_earlydata, int fresh_connect)
|
||||
{
|
||||
curl_easy_setopt(hnd, CURLOPT_SHARE, share);
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ static int my_progress_cb(void *userdata,
|
|||
}
|
||||
|
||||
static int setup(CURL *hnd, const char *url, struct transfer *t,
|
||||
int http_version, struct curl_slist *host,
|
||||
long http_version, struct curl_slist *host,
|
||||
CURLSH *share, int use_earlydata, int announce_length)
|
||||
{
|
||||
curl_easy_setopt(hnd, CURLOPT_SHARE, share);
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ static size_t write_cb(char *ptr, size_t size, size_t nmemb, void *opaque)
|
|||
|
||||
static int add_transfer(CURLM *multi, CURLSH *share,
|
||||
struct curl_slist *resolve,
|
||||
const char *url, int http_version)
|
||||
const char *url, long http_version)
|
||||
{
|
||||
CURL *easy;
|
||||
CURLMcode mc;
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ int main(int argc, char *argv[])
|
|||
struct curl_slist *resolve = NULL;
|
||||
char resolve_buf[1024];
|
||||
char *url, *host = NULL, *port = NULL;
|
||||
int http_version = CURL_HTTP_VERSION_1_1;
|
||||
long http_version = CURL_HTTP_VERSION_1_1;
|
||||
int ch;
|
||||
|
||||
while((ch = getopt(argc, argv, "V:")) != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue