From 3ae2b6cd7ff6eda5c6856efb6b2cdf52b61e980c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 5 Jul 2014 16:59:12 +0200 Subject: Update instances of some obsolete CURLOPTs to their new names --- docs/examples/url2file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs/examples/url2file.c') 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); -- cgit v1.2.3