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
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue