1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 08:18:51 -05:00

fix warning when internal download is not used

After commit 30c4d53ce5, get_destfile and
get_tempfile are only used for internal download, so move these two
functions inside the ifdef

Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Xavier Chantry 2009-08-02 19:10:05 +02:00 committed by Dan McGee
parent b2dcacb5aa
commit e8db103122

View File

@ -55,6 +55,7 @@ static char *get_filename(const char *url) {
return(filename); return(filename);
} }
#if defined(INTERNAL_DOWNLOAD)
static char *get_destfile(const char *path, const char *filename) { static char *get_destfile(const char *path, const char *filename) {
char *destfile; char *destfile;
/* len = localpath len + filename len + null */ /* len = localpath len + filename len + null */
@ -75,7 +76,6 @@ static char *get_tempfile(const char *path, const char *filename) {
return(tempfile); return(tempfile);
} }
#if defined(INTERNAL_DOWNLOAD)
/* Build a 'struct url' from an url. */ /* Build a 'struct url' from an url. */
static struct url *url_for_string(const char *url) static struct url *url_for_string(const char *url)
{ {