From 44889da5b704483b7ee013ec828ff64b64980de8 Mon Sep 17 00:00:00 2001
From: Dave Reisner <dreisner@archlinux.org>
Date: Sun, 3 Jul 2011 19:58:19 -0400
Subject: dload: rearrange code to avoid extra cpp block

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
---
 lib/libalpm/dload.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'lib/libalpm')

diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 4b4d8dff..b93182f3 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -42,10 +42,6 @@
 #include "util.h"
 #include "handle.h"
 
-#ifdef HAVE_LIBCURL
-static double prevprogress; /* last download amount */
-#endif
-
 static const char *get_filename(const char *url)
 {
 	char *filename = strrchr(url, '/');
@@ -56,6 +52,8 @@ static const char *get_filename(const char *url)
 }
 
 #ifdef HAVE_LIBCURL
+static double prevprogress; /* last download amount */
+
 static char *get_fullpath(const char *path, const char *filename,
 		const char *suffix)
 {
-- 
cgit v1.2.3-70-g09d2