commit ac3136a6fb52500d849db7622b4af0af42038a91
parent 98c3b3bb4ca7679a5045f285db7fd30b5d069615
Author: Nick Mathewson <nickm@torproject.org>
Date: Thu, 17 Oct 2019 15:28:07 -0400
Make options_init_logs STATIC for testing.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/app/config/config.c b/src/app/config/config.c
@@ -836,8 +836,6 @@ static int check_server_ports(const smartlist_t *ports,
static int validate_data_directories(or_options_t *options);
static int write_configuration_file(const char *fname,
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 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.
*/
-static int
+STATIC int
options_init_logs(const or_options_t *old_options, or_options_t *options,
int validate_only)
{
diff --git a/src/app/config/config.h b/src/app/config/config.h
@@ -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,
const char *fname,
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) */