]> granicus.if.org Git - curl/commitdiff
use the modern name for this option
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 Jan 2010 18:43:29 +0000 (18:43 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Jan 2010 18:43:29 +0000 (18:43 +0000)
docs/examples/curlx.c

index 09d27cc970c2334adbdef1be5413d3457629d610..9b1c29158d383dbce5dab9e46e2a4b2be794af40 100644 (file)
@@ -453,7 +453,7 @@ int main(int argc, char **argv) {
   {
     FILE *outfp;
     BIO_get_fp(out,&outfp);
-    curl_easy_setopt(p.curl, CURLOPT_FILE,outfp);
+    curl_easy_setopt(p.curl, CURLOPT_WRITEDATA, outfp);
   }
 
   res = curl_easy_setopt(p.curl, CURLOPT_SSL_CTX_FUNCTION, sslctxfun)  ;