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/ftpupload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/examples/ftpupload.c') diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c index 9ce548480..76fc92ebb 100644 --- a/docs/examples/ftpupload.c +++ b/docs/examples/ftpupload.c @@ -9,6 +9,7 @@ */ #include +#include #include #include @@ -83,7 +84,7 @@ int main(int argc, char **argv) curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); /* enable uploading */ - curl_easy_setopt(curl, CURLOPT_UPLOAD, 1) ; + curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); /* specify target */ curl_easy_setopt(curl,CURLOPT_URL, REMOTE_URL); -- cgit v1.2.3