diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 14:13:19 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 14:13:19 +0000 |
commit | f68219ddaab9dab05a195a6fd126b4edb5ecccdc (patch) | |
tree | e80e2c7b14185d28b9b7ea246628a364cb452896 /docs/examples/ftpget.c | |
parent | 7e3cd82b5028546cff19bfc8fcb95c5001c26d33 (diff) | |
download | gnurl-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.c | 2 |
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); |