summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpiano/src/http.c4
-rw-r--r--libwardrobe/src/main.c4
-rw-r--r--src/player.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/libpiano/src/http.c b/libpiano/src/http.c
index 96655ca..e585586 100644
--- a/libpiano/src/http.c
+++ b/libpiano/src/http.c
@@ -73,7 +73,7 @@ PianoReturn_t PianoHttpPost (CURL *ch, const char *url, const char *postData,
/* don't verify certificate for now, it's easier ;) */
curl_easy_setopt (ch, CURLOPT_SSL_VERIFYPEER, 0);
memset (curlRet, 0, sizeof (curlRet));
- curl_easy_setopt (ch, CURLOPT_WRITEDATA, curlRet);
+ curl_easy_setopt (ch, CURLOPT_WRITEDATA, (void *) curlRet);
if (curl_easy_perform (ch) == CURLE_OK) {
ret = PIANO_RET_OK;
@@ -105,7 +105,7 @@ PianoReturn_t PianoHttpGet (CURL *ch, const char *url, char **retData) {
curl_easy_setopt (ch, CURLOPT_HTTPHEADER, NULL);
curl_easy_setopt (ch, CURLOPT_WRITEFUNCTION, PianoCurlRetToVar);
memset (curlRet, 0, sizeof (curlRet));
- curl_easy_setopt (ch, CURLOPT_WRITEDATA, curlRet);
+ curl_easy_setopt (ch, CURLOPT_WRITEDATA, (void *) curlRet);
if (curl_easy_perform (ch) == CURLE_OK) {
ret = PIANO_RET_OK;
diff --git a/libwardrobe/src/main.c b/libwardrobe/src/main.c
index aa3336a..abf669d 100644
--- a/libwardrobe/src/main.c
+++ b/libwardrobe/src/main.c
@@ -71,7 +71,7 @@ void WardrobeHttpGet (CURL *ch, const char *url, char **retData) {
curl_easy_setopt (ch, CURLOPT_URL, url);
curl_easy_setopt (ch, CURLOPT_HTTPGET, 1L);
curl_easy_setopt (ch, CURLOPT_WRITEFUNCTION, WardrobeCurlRetToVar);
- curl_easy_setopt (ch, CURLOPT_WRITEDATA, curlRet);
+ curl_easy_setopt (ch, CURLOPT_WRITEDATA, (void *) curlRet);
curl_easy_perform (ch);
@@ -94,7 +94,7 @@ void WardrobeHttpPost (CURL *ch, const char *url, const char *postData,
curl_easy_setopt (ch, CURLOPT_URL, url);
curl_easy_setopt (ch, CURLOPT_POSTFIELDS, postData);
curl_easy_setopt (ch, CURLOPT_WRITEFUNCTION, WardrobeCurlRetToVar);
- curl_easy_setopt (ch, CURLOPT_WRITEDATA, curlRet);
+ curl_easy_setopt (ch, CURLOPT_WRITEDATA, (void *) curlRet);
curl_easy_perform (ch);
diff --git a/src/player.c b/src/player.c
index e49e5bb..4d42b91 100644
--- a/src/player.c
+++ b/src/player.c
@@ -263,7 +263,7 @@ void *BarPlayerThread (void *data) {
/* init curl */
curl_easy_setopt (player->audioFd, CURLOPT_URL, player->url);
curl_easy_setopt (player->audioFd, CURLOPT_WRITEFUNCTION, BarPlayerCurlCb);
- curl_easy_setopt (player->audioFd, CURLOPT_WRITEDATA, player);
+ curl_easy_setopt (player->audioFd, CURLOPT_WRITEDATA, (void *) player);
curl_easy_setopt (player->audioFd, CURLOPT_USERAGENT, PACKAGE_STRING);
curl_easy_setopt (player->audioFd, CURLOPT_CONNECTTIMEOUT, 60);