]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
test_res_prometheus: Fix compilation failure on Debian 13.
authorNaveen Albert <asterisk@phreaknet.org>
Thu, 14 Aug 2025 20:31:00 +0000 (16:31 -0400)
committerNaveen Albert <asterisk@phreaknet.org>
Fri, 15 Aug 2025 16:10:46 +0000 (16:10 +0000)
curl_easy_setopt expects long types, so be explicit.

Resolves: #1369

tests/test_res_prometheus.c

index 2ccf94dad9017a15593a22b5d2093cabbf820dd4..e613bb27816ca4959c6749e81d68c660d6a32ac2 100644 (file)
@@ -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;