Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-08-02 19:10:05 +0200
committerDan McGee <dan@archlinux.org>2009-08-02 12:16:02 -0500
commite8db103122397fa81d079f9914adf65b1cb85c65 (patch)
tree7d50ab9136fcd34c5f1086cb2c882c490be1d20f /lib
parentb2dcacb5aadd77d89239ac944259085848c42167 (diff)
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')
-rw-r--r--lib/libalpm/dload.c2
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)
{