From 2838aed5dc486fb4bef0dccd73299795708dfb4a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 13:27:33 +0200 Subject: [PATCH] easy_download: fixed the type of write_data() Fix the type of write_data() to fit curl_write_callback. --- src/easy_download.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2