diff options
author | Dimitrios Siganos <dimitris@siganos.org> | 2014-07-02 11:49:08 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-07-03 22:47:28 +0200 |
commit | 22eb00f9378af4d5b128119754d1b4d69b81e2ee (patch) | |
tree | 068bcf01195c57ce5bd6a406e336d9ed6ce9f99b /docs/examples | |
parent | afbd5f978e0db5e6265705cc2101c079be947f33 (diff) |
example: use correct type (long) for CURLOPT_FOLLOWLOCATION
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/href_extractor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/href_extractor.c b/docs/examples/href_extractor.c index 4b307a29e..c11325d2e 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); |