diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2009-08-02 19:10:05 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-08-02 19:16:02 +0200 |
commit | e8db103122397fa81d079f9914adf65b1cb85c65 (patch) | |
tree | 7d50ab9136fcd34c5f1086cb2c882c490be1d20f /lib/libalpm | |
parent | b2dcacb5aadd77d89239ac944259085848c42167 (diff) | |
download | pacman-e8db103122397fa81d079f9914adf65b1cb85c65.tar.gz pacman-e8db103122397fa81d079f9914adf65b1cb85c65.tar.xz |
fix warning when internal download is not used
After commit 30c4d53ce5c16cbbb17a88fe1ad14faf53d91999, 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>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/dload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 6b163ce6..57c21b8e 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -55,6 +55,7 @@ static char *get_filename(const char *url) { return(filename); } +#if defined(INTERNAL_DOWNLOAD) static char *get_destfile(const char *path, const char *filename) { char *destfile; /* len = localpath len + filename len + null */ @@ -75,7 +76,6 @@ static char *get_tempfile(const char *path, const char *filename) { return(tempfile); } -#if defined(INTERNAL_DOWNLOAD) /* Build a 'struct url' from an url. */ static struct url *url_for_string(const char *url) { |