mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Make options_init_logs STATIC for testing.
This commit is contained in:
parent
98c3b3bb4c
commit
ac3136a6fb
@ -836,8 +836,6 @@ static int check_server_ports(const smartlist_t *ports,
|
|||||||
static int validate_data_directories(or_options_t *options);
|
static int validate_data_directories(or_options_t *options);
|
||||||
static int write_configuration_file(const char *fname,
|
static int write_configuration_file(const char *fname,
|
||||||
const or_options_t *options);
|
const or_options_t *options);
|
||||||
static int options_init_logs(const or_options_t *old_options,
|
|
||||||
or_options_t *options, int validate_only);
|
|
||||||
|
|
||||||
static void init_libevent(const or_options_t *options);
|
static void init_libevent(const or_options_t *options);
|
||||||
static int opt_streq(const char *s1, const char *s2);
|
static int opt_streq(const char *s1, const char *s2);
|
||||||
@ -5676,7 +5674,7 @@ open_and_add_file_log(const log_severity_list_t *severity,
|
|||||||
/**
|
/**
|
||||||
* Initialize the logs based on the configuration file.
|
* Initialize the logs based on the configuration file.
|
||||||
*/
|
*/
|
||||||
static int
|
STATIC int
|
||||||
options_init_logs(const or_options_t *old_options, or_options_t *options,
|
options_init_logs(const or_options_t *old_options, or_options_t *options,
|
||||||
int validate_only)
|
int validate_only)
|
||||||
{
|
{
|
||||||
|
@ -309,6 +309,8 @@ STATIC uint64_t compute_real_max_mem_in_queues(const uint64_t val,
|
|||||||
STATIC int open_and_add_file_log(const log_severity_list_t *severity,
|
STATIC int open_and_add_file_log(const log_severity_list_t *severity,
|
||||||
const char *fname,
|
const char *fname,
|
||||||
int truncate_log);
|
int truncate_log);
|
||||||
|
STATIC int options_init_logs(const or_options_t *old_options,
|
||||||
|
or_options_t *options, int validate_only);
|
||||||
|
|
||||||
#endif /* defined(CONFIG_PRIVATE) */
|
#endif /* defined(CONFIG_PRIVATE) */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user