aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 13:27:33 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 13:27:33 +0200
commit2838aed5dc486fb4bef0dccd73299795708dfb4a (patch)
treea2743af72e5e9e04f6b2a9efa40ea5f6e07b5106
parent1c51c6681b366c1d5ee87f48553d4223ad4c198d (diff)
downloadmpd-2838aed5dc486fb4bef0dccd73299795708dfb4a.tar.gz
mpd-2838aed5dc486fb4bef0dccd73299795708dfb4a.tar.xz
mpd-2838aed5dc486fb4bef0dccd73299795708dfb4a.zip
easy_download: fixed the type of write_data()
Fix the type of write_data() to fit curl_write_callback.
Diffstat (limited to '')
-rw-r--r--src/easy_download.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/easy_download.c b/src/easy_download.c
index d57202580..1dff510a5 100644
--- a/src/easy_download.c
+++ b/src/easy_download.c
@@ -28,8 +28,10 @@
#include <curl/curl.h>
static size_t write_data(void *buffer, size_t size,
- size_t nmemb, easy_download_struct *dld)
+ size_t nmemb, void *data)
{
+ easy_download_struct *dld = data;
+
if(dld->data == NULL)
{
dld->size = 0;