summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c51c66)
raw | patch | inline | side by side (parent: 1c51c66)
author | Max Kellermann <max@duempel.org> | |
Mon, 15 Sep 2008 11:27:33 +0000 (13:27 +0200) | ||
committer | Max 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 | patch | blob | history |
diff --git a/src/easy_download.c b/src/easy_download.c
index d572025804c195e0ef967e1fa510558cbd76d98b..1dff510a5d79978641b79f114f2fb527802d462b 100644 (file)
--- a/src/easy_download.c
+++ b/src/easy_download.c
#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;