Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/dload.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r--lib/libalpm/dload.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index dc4f91e5..ac47e94a 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -42,6 +42,9 @@
#include "util.h"
#include "handle.h"
+#ifdef HAVE_LIBCURL
+static double prevprogress; /* last download amount */
+
static const char *get_filename(const char *url)
{
char *filename = strrchr(url, '/');
@@ -51,9 +54,6 @@ static const char *get_filename(const char *url)
return filename;
}
-#ifdef HAVE_LIBCURL
-static double prevprogress; /* last download amount */
-
static char *get_fullpath(const char *path, const char *filename,
const char *suffix)
{