MT#55283 silence curl compiler warnings

Change-Id: Ie0e4e292f10cf69e871a150957c957095bc3545b
(cherry picked from commit 991a2c3bce)
(cherry picked from commit a6923f2b73)
(cherry picked from commit a43e1346f5)
mr11.5.1
Richard Fuchs 6 months ago
parent 6c42c188f8
commit 209518c330

@ -64,12 +64,12 @@ static void do_notify(void *p, void *u) {
/* 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 */
@ -80,14 +80,14 @@ static void do_notify(void *p, void *u) {
/* 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;
}

Loading…
Cancel
Save