cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] Fix example to use correct type (long) for CURLOPT_FOLLOWLOCATION.

From: Dimitrios Siganos <dimitris_at_siganos.org>
Date: Wed, 2 Jul 2014 10:49:08 +0100

---
 docs/examples/href_extractor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/examples/href_extractor.c b/docs/examples/href_extractor.c
index 4b307a2..c11325d 100644
--- a/docs/examples/href_extractor.c
+++ b/docs/examples/href_extractor.c
@@ -74,7 +74,7 @@ int main(int argc, char *argv[])
   curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
   curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
   curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
-  curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
+  curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
 
   curl_easy_perform(curl);
 
-- 
1.8.1.2
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-07-02