diff --git a/daemon/call.c b/daemon/call.c index c614be23a..b57d12560 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -344,13 +344,13 @@ void xmlrpc_kill_calls(void *p) { goto fault; if ((ret = curl_easy_setopt(curl, CURLOPT_URL, url)) != CURLE_OK) goto fault; - if ((ret = curl_easy_setopt(curl, CURLOPT_POST, 1)) != CURLE_OK) + if ((ret = curl_easy_setopt(curl, CURLOPT_POST, 1L)) != CURLE_OK) goto fault; if ((ret = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, cb_curl_write)) != CURLE_OK) goto fault; if ((ret = curl_easy_setopt(curl, CURLOPT_WRITEDATA, response)) != CURLE_OK) goto fault; - if ((ret = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5)) != CURLE_OK) + if ((ret = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L)) != CURLE_OK) goto fault; if ((ret = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, &(struct curl_slist) {.data = "Content-type: text/xml"})) != CURLE_OK) diff --git a/recording-daemon/notify.c b/recording-daemon/notify.c index dff5f5b78..1e1b2c969 100644 --- a/recording-daemon/notify.c +++ b/recording-daemon/notify.c @@ -70,12 +70,12 @@ static bool do_notify_http(struct notif_req *req) { /* allow redirects */ err = "setting CURLOPT_FOLLOWLOCATION"; - if ((ret = curl_easy_setopt(c, CURLOPT_FOLLOWLOCATION, 1)) != CURLE_OK) + if ((ret = curl_easy_setopt(c, CURLOPT_FOLLOWLOCATION, 1L)) != CURLE_OK) goto fail; /* max 5 redirects */ err = "setting CURLOPT_MAXREDIRS"; - if ((ret = curl_easy_setopt(c, CURLOPT_MAXREDIRS, 5)) != CURLE_OK) + if ((ret = curl_easy_setopt(c, CURLOPT_MAXREDIRS, 5L)) != CURLE_OK) goto fail; /* add headers */ @@ -86,14 +86,14 @@ static bool do_notify_http(struct notif_req *req) { /* POST vs GET */ if (notify_post) { err = "setting CURLOPT_POST"; - if ((ret = curl_easy_setopt(c, CURLOPT_POST, 1)) != CURLE_OK) + if ((ret = curl_easy_setopt(c, CURLOPT_POST, 1L)) != CURLE_OK) goto fail; } /* cert verify (enabled by default) */ if (notify_nverify) { err = "setting CURLOPT_SSL_VERIFYPEER"; - if ((ret = curl_easy_setopt(c, CURLOPT_SSL_VERIFYPEER, 0)) != CURLE_OK) + if ((ret = curl_easy_setopt(c, CURLOPT_SSL_VERIFYPEER, 0L)) != CURLE_OK) goto fail; }