Code

easy_download: fixed the type of write_data()
authorMax Kellermann <max@duempel.org>
Mon, 15 Sep 2008 11:27:33 +0000 (13:27 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 15 Sep 2008 11:27:33 +0000 (13:27 +0200)
Fix the type of write_data() to fit curl_write_callback.

src/easy_download.c

index d572025804c195e0ef967e1fa510558cbd76d98b..1dff510a5d79978641b79f114f2fb527802d462b 100644 (file)
 #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;