From: Florian Forster Date: Sat, 23 Jan 2010 16:28:22 +0000 (+0100) Subject: curl_xml plugin: Cast _Bool to long when calling curl_easy_setopt. X-Git-Tag: collectd-4.10.0~63 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ced2f3438fb1c333cd582a7d944d524b56ba0ef3;p=collectd.git curl_xml plugin: Cast _Bool to long when calling curl_easy_setopt. --- diff --git a/src/curl_xml.c b/src/curl_xml.c index 062ad90a..240be662 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -761,9 +761,9 @@ static int cx_init_curl (cx_t *db) /* {{{ */ curl_easy_setopt (db->curl, CURLOPT_USERPWD, db->credentials); } - curl_easy_setopt (db->curl, CURLOPT_SSL_VERIFYPEER, db->verify_peer); + curl_easy_setopt (db->curl, CURLOPT_SSL_VERIFYPEER, db->verify_peer ? 1L : 0L); curl_easy_setopt (db->curl, CURLOPT_SSL_VERIFYHOST, - db->verify_host ? 2 : 0); + db->verify_host ? 2L : 0L); if (db->cacert != NULL) curl_easy_setopt (db->curl, CURLOPT_CAINFO, db->cacert);