diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2014-07-05 16:59:12 +0200 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2014-07-05 22:47:13 +0200 |
commit | 3ae2b6cd7ff6eda5c6856efb6b2cdf52b61e980c (patch) | |
tree | 2a7ed6b30ce8ec8fc1366f7f39333124f6c8fe10 /docs/examples/url2file.c | |
parent | 8ffe6f5b5761aa77b3e5eae236475b173e9efd2f (diff) |
Update instances of some obsolete CURLOPTs to their new names
Diffstat (limited to 'docs/examples/url2file.c')
-rw-r--r-- | docs/examples/url2file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/examples/url2file.c b/docs/examples/url2file.c index 64d27c88f..adf696c9a 100644 --- a/docs/examples/url2file.c +++ b/docs/examples/url2file.c @@ -63,9 +63,8 @@ int main(int argc, char *argv[]) pagefile = fopen(pagefilename, "wb"); if (pagefile) { - /* write the page body to this file handle. CURLOPT_FILE is also known as - CURLOPT_WRITEDATA*/ - curl_easy_setopt(curl_handle, CURLOPT_FILE, pagefile); + /* write the page body to this file handle */ + curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, pagefile); /* get it! */ curl_easy_perform(curl_handle); |