Fixed a surprising number of example programs that were passing int arguments

to curl_easy_setopt instead of long.
This commit is contained in:
Dan Fandrich
2008-05-22 21:20:07 +00:00
parent b8abeab6d3
commit e664cd5826
28 changed files with 63 additions and 61 deletions

View File

@@ -36,7 +36,7 @@ int main(void)
"file:///home/dast/src/curl/debug/new");
/* tell it to "upload" to the URL */
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
/* set where to read from (on Windows you need to use READFUNCTION too) */
curl_easy_setopt(curl, CURLOPT_READDATA, fd);
@@ -46,7 +46,7 @@ int main(void)
(curl_off_t)file_info.st_size);
/* enable verbose for easier tracing */
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
res = curl_easy_perform(curl);