mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
dload: rearrange code to avoid extra cpp block
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
This commit is contained in:
parent
6cce517f1a
commit
44889da5b7
@ -42,10 +42,6 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "handle.h"
|
#include "handle.h"
|
||||||
|
|
||||||
#ifdef HAVE_LIBCURL
|
|
||||||
static double prevprogress; /* last download amount */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static const char *get_filename(const char *url)
|
static const char *get_filename(const char *url)
|
||||||
{
|
{
|
||||||
char *filename = strrchr(url, '/');
|
char *filename = strrchr(url, '/');
|
||||||
@ -56,6 +52,8 @@ static const char *get_filename(const char *url)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_LIBCURL
|
#ifdef HAVE_LIBCURL
|
||||||
|
static double prevprogress; /* last download amount */
|
||||||
|
|
||||||
static char *get_fullpath(const char *path, const char *filename,
|
static char *get_fullpath(const char *path, const char *filename,
|
||||||
const char *suffix)
|
const char *suffix)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user