1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-11 03:54:59 -05:00

dload: rearrange code to avoid extra cpp block

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
This commit is contained in:
Dave Reisner 2011-07-03 19:58:19 -04:00
parent 6cce517f1a
commit 44889da5b7

View File

@ -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)
{