diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-07-12 21:11:10 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-07-12 21:11:10 +0000 |
commit | 49ce3e5160a9576e797bf87cef012b09d1c54ecb (patch) | |
tree | 9b8e476de272cfd92bb3d857aa3c6eef273140b7 /docs/examples/post-callback.c | |
parent | 4a728747e6f8845e500910e397dfc99aaf4a7984 (diff) |
Fixed some compile warnings and errors and improved portability in the
examples.
Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers
any longer.
Diffstat (limited to 'docs/examples/post-callback.c')
-rw-r--r-- | docs/examples/post-callback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/post-callback.c b/docs/examples/post-callback.c index 1da88a8af..a2c89873f 100644 --- a/docs/examples/post-callback.c +++ b/docs/examples/post-callback.c @@ -15,10 +15,10 @@ #include <string.h> #include <curl/curl.h> -char data[]="this is what we post to the silly web server"; +const char data[]="this is what we post to the silly web server"; struct WriteThis { - char *readptr; + const char *readptr; int sizeleft; }; @@ -55,7 +55,7 @@ int main(void) curl_easy_setopt(curl, CURLOPT_URL, "http://receivingsite.com.pooh/index.cgi"); /* Now specify we want to POST data */ - curl_easy_setopt(curl, CURLOPT_POST, TRUE); + curl_easy_setopt(curl, CURLOPT_POST, 1); /* we want to use our own read function */ curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); |