From 1f5ba1a5ac2f652cd3a374200411767286803f9f Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 1 Jan 2018 13:39:58 +0100 Subject: [PATCH] xcap_client: cast curl setopt params to avoid analyzer warnings --- src/modules/xcap_client/xcap_functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/xcap_client/xcap_functions.c b/src/modules/xcap_client/xcap_functions.c index cee161b7d09..39768ee74ab 100644 --- a/src/modules/xcap_client/xcap_functions.c +++ b/src/modules/xcap_client/xcap_functions.c @@ -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);