From: Dimitrios Siganos Date: Wed, 2 Jul 2014 09:49:08 +0000 (+0200) Subject: example: use correct type (long) for CURLOPT_FOLLOWLOCATION X-Git-Tag: curl-7_37_1~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22eb00f9378af4d5b128119754d1b4d69b81e2ee;p=thirdparty%2Fcurl.git example: use correct type (long) for CURLOPT_FOLLOWLOCATION --- diff --git a/docs/examples/href_extractor.c b/docs/examples/href_extractor.c index 4b307a29e4..c11325d2e9 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);