aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/ftpget.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-08 14:13:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-08 14:13:19 +0000
commitf68219ddaab9dab05a195a6fd126b4edb5ecccdc (patch)
treee80e2c7b14185d28b9b7ea246628a364cb452896 /docs/examples/ftpget.c
parent7e3cd82b5028546cff19bfc8fcb95c5001c26d33 (diff)
downloadgnurl-f68219ddaab9dab05a195a6fd126b4edb5ecccdc.tar.gz
gnurl-f68219ddaab9dab05a195a6fd126b4edb5ecccdc.tar.bz2
gnurl-f68219ddaab9dab05a195a6fd126b4edb5ecccdc.zip
use the newer option names
Diffstat (limited to 'docs/examples/ftpget.c')
-rw-r--r--docs/examples/ftpget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/ftpget.c b/docs/examples/ftpget.c
index 6d728c6ec..2c2275fa5 100644
--- a/docs/examples/ftpget.c
+++ b/docs/examples/ftpget.c
@@ -58,7 +58,7 @@ int main(void)
/* Define our callback to get called when there's data to be written */
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
/* Set a pointer to our struct to pass to the callback */
- curl_easy_setopt(curl, CURLOPT_FILE, &ftpfile);
+ curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
/* Switch on full protocol/debug output */
curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);