mirror of
https://github.com/mirror/wget.git
synced 2024-12-28 22:00:27 +08:00
* src/netrc.c (free_netrc): Only compile if DEBUG_MALLOC or TESTING is defined
This commit is contained in:
parent
7a3a82faf8
commit
5a141065c4
@ -59,14 +59,15 @@ typedef struct _acc_t
|
||||
|
||||
static acc_t *parse_netrc (const char *);
|
||||
static acc_t *parse_netrc_fp (const char *, FILE *);
|
||||
static void free_netrc(acc_t *);
|
||||
|
||||
static acc_t *netrc_list;
|
||||
static int processed_netrc;
|
||||
|
||||
#if defined DEBUG_MALLOC || defined TESTING
|
||||
static void free_netrc(acc_t *);
|
||||
|
||||
void
|
||||
netrc_cleanup(void)
|
||||
netrc_cleanup (void)
|
||||
{
|
||||
free_netrc (netrc_list);
|
||||
processed_netrc = 0;
|
||||
@ -461,6 +462,7 @@ parse_netrc (const char *path)
|
||||
return acc;
|
||||
}
|
||||
|
||||
#if defined DEBUG_MALLOC || defined TESTING
|
||||
/* Free a netrc list. */
|
||||
static void
|
||||
free_netrc(acc_t *l)
|
||||
@ -477,6 +479,7 @@ free_netrc(acc_t *l)
|
||||
l = t;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef STANDALONE
|
||||
#include <sys/types.h>
|
||||
|
Loading…
Reference in New Issue
Block a user