From 2dd44ee3d7d0b20753c6dc1d019b1444dff1a59e Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 28 Jan 2012 22:12:57 +0100 Subject: [PATCH] core: fix compilation warning on curl_easy_setopt for option CURLOPT_FOLLOWLOCATION --- src/core/wee-url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/wee-url.c b/src/core/wee-url.c index 422c03ccf..7bed1c49f 100644 --- a/src/core/wee-url.c +++ b/src/core/wee-url.c @@ -1070,7 +1070,7 @@ weeurl_download (const char *url, struct t_hashtable *options) /* set default options */ curl_easy_setopt (curl, CURLOPT_URL, url); - curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, "1"); + curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1L); /* set file in/out from options in hashtable */ if (options)