Skip to content

Commit

Permalink
xcap_client: cast curl setopt params to avoid analyzer warnings
Browse files Browse the repository at this point in the history
(cherry picked from commit 1f5ba1a)
  • Loading branch information
miconda committed Jan 19, 2018
1 parent bc9f93c commit 23e6e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/xcap_client/xcap_functions.c
Expand Up @@ -514,11 +514,11 @@ char* send_http_get(char* path, unsigned int xcap_port, char* match_etag,

curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_function);

curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, &stream);
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void*)(&stream));

curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, get_xcap_etag);

curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, &etag);
curl_easy_setopt(curl_handle, CURLOPT_WRITEHEADER, (void*)(&etag));

if(match_header)
curl_easy_setopt(curl_handle, CURLOPT_HEADER, (long)match_header);
Expand Down

0 comments on commit 23e6e67

Please sign in to comment.