Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=6e8d5e08c85470784cc736fa50262e34b554bc09

commit 6e8d5e08c85470784cc736fa50262e34b554bc09
Author: Michel Hermier <[email protected]>
Date:   Thu Nov 28 17:09:20 2013 +0100

libpacman: Fix typo with curl_easy_setopt CURLOPT_PROGRESSDATA.

diff --git a/lib/libpacman/server.c b/lib/libpacman/server.c
index f7bd97f..6682b87 100644
--- a/lib/libpacman/server.c
+++ b/lib/libpacman/server.c
@@ -186,7 +186,7 @@ int _pacman_curl_init(pmcurldownloader_t *curldownloader) {
_pacman_log(PM_LOG_DEBUG, _("error setting noprogress off\n"));
goto error;
}
-       if(curl_easy_setopt(curlHandle,CURLOPT_PROGRESSDATA , (void 
*)&curldownloader) != CURLE_OK) {
+       if(curl_easy_setopt(curlHandle, CURLOPT_PROGRESSDATA, curldownloader) 
!= CURLE_OK) {
_pacman_log(PM_LOG_DEBUG, _("error passing our debug function pointer to 
progress callback\n"));
goto error;
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to