From: Ingo Ruhnke Date: Mon, 29 Sep 2014 14:25:16 +0000 (+0200) Subject: Fixed return type foobar in the curl progress callback X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e4f094f064907169b433d4dcc6d24748267820ef;p=supertux.git Fixed return type foobar in the curl progress callback --- 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); }