Skip to content

Commit

Permalink
http_client: cast parameter to curl function to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jan 5, 2018
1 parent 90ee13d commit bab289f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/http_client/functions.c
Expand Up @@ -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);
Expand Down

0 comments on commit bab289f

Please sign in to comment.