Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=b81a714a9cd0b25138dee28158a1d41e0653c326
commit b81a714a9cd0b25138dee28158a1d41e0653c326 Author: Marius Cirsta <[email protected]> Date: Sun Dec 1 01:46:59 2013 +0200 * replace CURLOPT_PROGRESSFUNCTION with the newer CURLOPT_XFERINFOFUNCTION diff --git a/lib/libpacman/server.c b/lib/libpacman/server.c index 289b3ea..31ea9f4 100644 --- a/lib/libpacman/server.c +++ b/lib/libpacman/server.c @@ -149,7 +149,7 @@ enum __pmfiletype_t { * Progress callback used by libcurl, we then pass our own progress function */ static -int _pacman_curl_progresscb(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow) +int _pacman_curl_progresscb(void *clientp, curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow) { if(dltotal > 0 && dlnow > 0) { pmcurldownloader_t *curldownloader = clientp; @@ -204,7 +204,7 @@ int _pacman_curl_init(pmcurldownloader_t *curldownloader) _pacman_log(PM_LOG_DEBUG, _("error passing our debug function pointer to progress callback\n")); goto error; } - if(curl_easy_setopt(curlHandle, CURLOPT_PROGRESSFUNCTION, _pacman_curl_progresscb) != CURLE_OK) { + if(curl_easy_setopt(curlHandle, CURLOPT_XFERINFOFUNCTION, _pacman_curl_progresscb) != CURLE_OK) { _pacman_log(PM_LOG_DEBUG, _("error setting progress bar\n")); goto error; } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
