mirror of
https://github.com/curl/curl.git
synced 2025-09-16 17:12:43 +03:00
minor variable type fix
This commit is contained in:
parent
bc7122f6e2
commit
f8ff0f6bef
|
@ -4,7 +4,7 @@ static char data[]="this is what we post to the silly web server\n";
|
||||||
|
|
||||||
struct WriteThis {
|
struct WriteThis {
|
||||||
char *readptr;
|
char *readptr;
|
||||||
int sizeleft;
|
size_t sizeleft;
|
||||||
};
|
};
|
||||||
|
|
||||||
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
|
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
|
||||||
|
@ -43,7 +43,7 @@ int test(char *URL)
|
||||||
curl_easy_setopt(curl, CURLOPT_POST, TRUE);
|
curl_easy_setopt(curl, CURLOPT_POST, TRUE);
|
||||||
|
|
||||||
/* Set the expected POST size */
|
/* Set the expected POST size */
|
||||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, pooh.sizeleft);
|
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft);
|
||||||
|
|
||||||
/* we want to use our own read function */
|
/* we want to use our own read function */
|
||||||
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
|
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user