aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-06 22:38:14 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-06 22:38:14 +0100
commitf3ec5393dc1c4feaba6ee40c93add85cf798ac40 (patch)
tree80237219233ff70cfa9cd6cc2eb01b8342b468e1
parenta4ff597ded031ad9139ef74059adf6f2c389acf5 (diff)
downloadpaccache-f3ec5393dc1c4feaba6ee40c93add85cf798ac40.tar.gz
paccache-f3ec5393dc1c4feaba6ee40c93add85cf798ac40.tar.zst
give long to curl_easy_setopt()
-rw-r--r--pacredir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pacredir.c b/pacredir.c
index 7249032..cb00942 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -222,12 +222,12 @@ int get_http_code(const char * host, const uint16_t port, const char * url, long
/* set user agent */
curl_easy_setopt(curl, CURLOPT_USERAGENT, "pacredir/" VERSION);
/* do not receive body */
- curl_easy_setopt(curl, CURLOPT_NOBODY, 1);
+ curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);
/* ask for filetime */
- curl_easy_setopt(curl, CURLOPT_FILETIME, 1);
+ curl_easy_setopt(curl, CURLOPT_FILETIME, 1L);
/* set connection timeout to 2 seconds
* if the host needs longer we do not want to use it anyway ;) */
- curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2);
+ curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 2L);
/* perform the request */
if (curl_easy_perform(curl) != CURLE_OK) {