From e664cd5826d43930fcc5b5dbaedbec94af33184b Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 22 May 2008 21:20:07 +0000 Subject: Fixed a surprising number of example programs that were passing int arguments to curl_easy_setopt instead of long. --- docs/examples/fileupload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/fileupload.c') diff --git a/docs/examples/fileupload.c b/docs/examples/fileupload.c index 0f6e69d20..cb88ef687 100644 --- a/docs/examples/fileupload.c +++ b/docs/examples/fileupload.c @@ -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); -- cgit v1.2.3