From 7dae79e7b95c517df136003728363dc9ad346a7e Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sat, 8 Aug 2009 19:59:02 +0200 Subject: dload.c : various fixes - fix one memleak if get_filename failed - cleanup according to Joerg's feedback: "url_for_string: If fetchParseURL returned successful, you should always have a scheme set. The logic for anonftp should only be needed for very broken server -- do you know of any such? download_internal: Specifying 'p' is now a nop -- it is tried by default first with fall-back to active FTP." Signed-off-by: Xavier Chantry [Dan: remove from pacman.conf and pacman.conf.5] Signed-off-by: Dan McGee --- lib/libalpm/handle.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/libalpm/handle.c') diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index d1a35ad9..819b9742 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -213,15 +213,6 @@ alpm_list_t SYMEXPORT *alpm_option_get_ignoregrps() return handle->ignoregrp; } -unsigned short SYMEXPORT alpm_option_get_nopassiveftp() -{ - if (handle == NULL) { - pm_errno = PM_ERR_HANDLE_NULL; - return -1; - } - return handle->nopassiveftp; -} - pmdb_t SYMEXPORT *alpm_option_get_localdb() { if (handle == NULL) { @@ -529,11 +520,6 @@ int SYMEXPORT alpm_option_remove_ignoregrp(const char *grp) return(0); } -void SYMEXPORT alpm_option_set_nopassiveftp(unsigned short nopasv) -{ - handle->nopassiveftp = nopasv; -} - void SYMEXPORT alpm_option_set_usedelta(unsigned short usedelta) { handle->usedelta = usedelta; -- cgit v1.2.3-24-g4f1b