summaryrefslogtreecommitdiff
path: root/src
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 /src
parent10159b75fe52251bf5a98ded557ea1dda28ac06c (diff)
downloadpianobar-6261a865d94f28b2fb6f06716178e22192176e17.tar.gz
pianobar-6261a865d94f28b2fb6f06716178e22192176e17.tar.bz2
pianobar-6261a865d94f28b2fb6f06716178e22192176e17.zip
Silence curl's attribute warnings
Diffstat (limited to 'src')
-rw-r--r--src/player.c2
1 files changed, 1 insertions, 1 deletions
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);