From 6ffe073db741afcee90d078a30c680b87b7ad327 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 19 Mar 2020 09:17:09 -0400 Subject: Add tests for get_first_advertised_{addr,port}_by_type_af() --- src/app/config/config.c | 5 +---- src/app/config/config.h | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/app/config') diff --git a/src/app/config/config.c b/src/app/config/config.c index cbca7d3899..aa5c92e4e1 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -809,9 +809,6 @@ static int normalize_nickname_list(config_line_t **normalized_out, char **msg); static char *get_bindaddr_from_transport_listen_line(const char *line, const char *transport); -static int parse_ports(or_options_t *options, int validate_only, - char **msg_out, int *n_ports_out, - int *world_writable_control_socket); static int check_server_ports(const smartlist_t *ports, const or_options_t *options, int *num_low_ports_out); @@ -7370,7 +7367,7 @@ count_real_listeners(const smartlist_t *ports, int listenertype, * If validate_only is false, set configured_client_ports to the * new list of ports parsed from options. **/ -static int +STATIC int parse_ports(or_options_t *options, int validate_only, char **msg, int *n_ports_out, int *world_writable_control_socket) diff --git a/src/app/config/config.h b/src/app/config/config.h index 301faf7067..6852d352dc 100644 --- a/src/app/config/config.h +++ b/src/app/config/config.h @@ -295,6 +295,10 @@ STATIC int open_and_add_file_log(const log_severity_list_t *severity, const char *fname, int truncate_log); +STATIC int parse_ports(or_options_t *options, int validate_only, + char **msg, int *n_ports_out, + int *world_writable_control_socket); + #endif /* defined(CONFIG_PRIVATE) */ #endif /* !defined(TOR_CONFIG_H) */ -- cgit v1.2.3-54-g00ecf