mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	test_res_prometheus: Fix compilation failure on Debian 13.
curl_easy_setopt expects long types, so be explicit.
Resolves: #1369
(cherry picked from commit 5a446dd74c)
			
			
This commit is contained in:
		
				
					committed by
					
						 George Joseph
						George Joseph
					
				
			
			
				
	
			
			
			
						parent
						
							f2c9b84a36
						
					
				
				
					commit
					8d3abb065e
				
			| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user