Ver Fonte

http_client: cast parameter to curl function to avoid warnings

Daniel-Constantin Mierla há 7 anos atrás
pai
commit
bab289f36b
1 ficheiros alterados com 1 adições e 1 exclusões
  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);