From e4f094f064907169b433d4dcc6d24748267820ef Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Mon, 29 Sep 2014 16:25:16 +0200 Subject: [PATCH] Fixed return type foobar in the curl progress callback --- src/addon/downloader.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/addon/downloader.cpp b/src/addon/downloader.cpp index d94854166..7c51d8404 100644 --- a/src/addon/downloader.cpp +++ b/src/addon/downloader.cpp @@ -153,7 +153,7 @@ public: return size * nmemb; } - void on_progress(double dltotal, double dlnow, + int on_progress(double dltotal, double dlnow, double ultotal, double ulnow) { m_status->dltotal = static_cast(dltotal); @@ -161,6 +161,8 @@ public: m_status->ultotal = static_cast(ultotal); m_status->ulnow = static_cast(ulnow); + + return 0; } private: @@ -169,9 +171,9 @@ private: return static_cast(userdata)->on_data(ptr, size, nmemb); } - static void on_progress_wrap(void* userdata, - double dltotal, double dlnow, - double ultotal, double ulnow) + static int on_progress_wrap(void* userdata, + double dltotal, double dlnow, + double ultotal, double ulnow) { return static_cast(userdata)->on_progress(dltotal, dlnow, ultotal, ulnow); } -- 2.11.0