From: Max Kellermann Date: Mon, 15 Sep 2008 11:27:33 +0000 (+0200) Subject: easy_download: fixed the type of write_data() X-Git-Tag: v0.12_alpha1~304 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2838aed5dc486fb4bef0dccd73299795708dfb4a;p=ncmpc.git easy_download: fixed the type of write_data() Fix the type of write_data() to fit curl_write_callback. --- diff --git a/src/easy_download.c b/src/easy_download.c index d572025..1dff510 100644 --- a/src/easy_download.c +++ b/src/easy_download.c @@ -28,8 +28,10 @@ #include 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;