From: Naveen Albert Date: Thu, 14 Aug 2025 20:31:00 +0000 (-0400) Subject: test_res_prometheus: Fix compilation failure on Debian 13. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a446dd74c679f6d3863d99995b20c08099d86c7;p=thirdparty%2Fasterisk.git test_res_prometheus: Fix compilation failure on Debian 13. curl_easy_setopt expects long types, so be explicit. Resolves: #1369 --- diff --git a/tests/test_res_prometheus.c b/tests/test_res_prometheus.c index 2ccf94dad9..e613bb2781 100644 --- a/tests/test_res_prometheus.c +++ b/tests/test_res_prometheus.c @@ -83,10 +83,10 @@ static CURL *get_curl_instance(void) return NULL; } - curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); - curl_easy_setopt(curl, CURLOPT_TIMEOUT, 180); + curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L); + curl_easy_setopt(curl, CURLOPT_TIMEOUT, 180L); curl_easy_setopt(curl, CURLOPT_USERAGENT, AST_CURL_USER_AGENT); - curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); + curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_URL, server_uri); return curl;