curl_xml plugin: Cast _Bool to long when calling curl_easy_setopt.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 23 Jan 2010 16:28:22 +0000 (17:28 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 23 Jan 2010 16:28:22 +0000 (17:28 +0100)
src/curl_xml.c

index 062ad90..240be66 100644 (file)
@@ -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);