diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-05-22 21:20:07 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-05-22 21:20:07 +0000 |
commit | e664cd5826d43930fcc5b5dbaedbec94af33184b (patch) | |
tree | 7cca8fe1a4d1649d4d40ed7dcd4fc64486dedf00 /docs/examples/fileupload.c | |
parent | b8abeab6d3729ce4c9cc3eccb69e2bd3be2b58d3 (diff) | |
download | curl-e664cd5826d43930fcc5b5dbaedbec94af33184b.tar.gz |
Fixed a surprising number of example programs that were passing int arguments
to curl_easy_setopt instead of long.
Diffstat (limited to 'docs/examples/fileupload.c')
-rw-r--r-- | docs/examples/fileupload.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |