aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/htmltitle.cc
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-05-22 21:20:07 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-05-22 21:20:07 +0000
commite664cd5826d43930fcc5b5dbaedbec94af33184b (patch)
tree7cca8fe1a4d1649d4d40ed7dcd4fc64486dedf00 /docs/examples/htmltitle.cc
parentb8abeab6d3729ce4c9cc3eccb69e2bd3be2b58d3 (diff)
Fixed a surprising number of example programs that were passing int arguments
to curl_easy_setopt instead of long.
Diffstat (limited to 'docs/examples/htmltitle.cc')
-rw-r--r--docs/examples/htmltitle.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/htmltitle.cc b/docs/examples/htmltitle.cc
index 62a4363d5..de7ff0339 100644
--- a/docs/examples/htmltitle.cc
+++ b/docs/examples/htmltitle.cc
@@ -100,7 +100,7 @@ static bool init(CURL *&conn, char *url)
return false;
}
- code = curl_easy_setopt(conn, CURLOPT_FOLLOWLOCATION, 1);
+ code = curl_easy_setopt(conn, CURLOPT_FOLLOWLOCATION, 1L);
if (code != CURLE_OK)
{
fprintf(stderr, "Failed to set redirect option [%s]\n", errorBuffer);