summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-08-26 19:33:23 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-08-26 19:33:23 +0200
commit6261a865d94f28b2fb6f06716178e22192176e17 (patch)
tree34bbc4159fdf33a356252bf2b6db8723927b3053
parent10159b75fe52251bf5a98ded557ea1dda28ac06c (diff)
downloadpianobar-6261a865d94f28b2fb6f06716178e22192176e17.tar.gz
pianobar-6261a865d94f28b2fb6f06716178e22192176e17.tar.bz2
pianobar-6261a865d94f28b2fb6f06716178e22192176e17.zip
Silence curl's attribute warnings
-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);