From e8db103122397fa81d079f9914adf65b1cb85c65 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sun, 2 Aug 2009 19:10:05 +0200 Subject: 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 Signed-off-by: Dan McGee --- lib/libalpm/dload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-24-g4f1b