diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-08-26 19:33:23 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-08-26 19:33:23 +0200 |
commit | 6261a865d94f28b2fb6f06716178e22192176e17 (patch) | |
tree | 34bbc4159fdf33a356252bf2b6db8723927b3053 /libpiano | |
parent | 10159b75fe52251bf5a98ded557ea1dda28ac06c (diff) | |
download | pianobar-6261a865d94f28b2fb6f06716178e22192176e17.tar.gz pianobar-6261a865d94f28b2fb6f06716178e22192176e17.tar.bz2 pianobar-6261a865d94f28b2fb6f06716178e22192176e17.zip |
Silence curl's attribute warnings
Diffstat (limited to 'libpiano')
-rw-r--r-- | libpiano/src/http.c | 4 |
1 files changed, 2 insertions, 2 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; |