Browse Source

http_client: cast parameter to curl function to avoid warnings

Daniel-Constantin Mierla 7 years ago
parent
commit
bab289f36b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/http_client/functions.c

+ 1 - 1
src/modules/http_client/functions.c

@@ -252,7 +252,7 @@ static int curL_query_url(struct sip_msg *_m, const char *_url, str *_dst,
 
 
 	res |= curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_function);
-	res |= curl_easy_setopt(curl, CURLOPT_WRITEDATA, &stream);
+	res |= curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void*)(&stream));
 
 	if(params->useragent)
 		res |= curl_easy_setopt(curl, CURLOPT_USERAGENT, params->useragent);