summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-18 14:59:17 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-18 15:01:49 +0200
commitde291a1b2290997051c22bef5d2d37714c5bd41f (patch)
tree0705bfadc37a2e59d8a2f62a53596b4b57cedf16
parentfa74802af61198688422f8e787b8c897c8b525e2 (diff)
downloadpianobar-windows-de291a1b2290997051c22bef5d2d37714c5bd41f.tar.gz
pianobar-windows-de291a1b2290997051c22bef5d2d37714c5bd41f.tar.bz2
pianobar-windows-de291a1b2290997051c22bef5d2d37714c5bd41f.zip
client: curl expects write callback to return size_t
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 134e9ad..ba6e7b3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -66,12 +66,12 @@ void dumpBuffer (char *buf, size_t len) {
}
/* FIXME: this is a huge block of _bad_ and buggy code */
-int playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) {
+size_t playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) {
char *data = ptr;
struct aacPlayer *player = stream;
if (player->doQuit) {
- return -1;
+ return 0;
}
if (player->dataMode == 1) {