Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=8ea078bdc426f1dfa8eb2ad89942df760b9206f6
commit 8ea078bdc426f1dfa8eb2ad89942df760b9206f6 Author: Miklos Vajna <[email protected]> Date: Wed Feb 3 12:30:12 2016 +0100 -Werror=unused-but-set-parameter diff --git a/lib/libftp/ftplib.c b/lib/libftp/ftplib.c index f43c0a2..a6cba24 100644 --- a/lib/libftp/ftplib.c +++ b/lib/libftp/ftplib.c @@ -1473,7 +1473,7 @@ static int HttpSendCmd(const char *cmd, char expresp, netbuf *nControl) * * return 1 if successful, 0 otherwise */ -static int HttpXfer(const char *localfile, const char *path, int *size, +static int HttpXfer(const char *localfile, int *size, netbuf *nControl, int typ, int mode) { int l,c; @@ -1482,9 +1482,6 @@ static int HttpXfer(const char *localfile, const char *path, int *size, int rv=1; int bytes = 0; - /* we don't use this 'path' variable */ - path=NULL; - if (localfile != NULL) { char ac[4] = "a"; @@ -1656,7 +1653,7 @@ GLOBALREF int HttpGet(const char *host, const char *outputfile, const char *path break; } - return HttpXfer(outputfile, path, size, nControl, FTPLIB_FILE_READ, FTPLIB_IMAGE); + return HttpXfer(outputfile, size, nControl, FTPLIB_FILE_READ, FTPLIB_IMAGE); } /* _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
