diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-03-19 09:17:09 -0400 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-03-21 03:43:52 +1000 |
commit | 6ffe073db741afcee90d078a30c680b87b7ad327 (patch) | |
tree | 694accec43067d90b8713422327e3e1818af166c /src/app | |
parent | bac8bc0ff11d5b4502f2e71138d23f71fc25e72a (diff) | |
download | tor-6ffe073db741afcee90d078a30c680b87b7ad327.tar.gz tor-6ffe073db741afcee90d078a30c680b87b7ad327.zip |
Add tests for get_first_advertised_{addr,port}_by_type_af()
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/config/config.c | 5 | ||||
-rw-r--r-- | src/app/config/config.h | 4 |
2 files changed, 5 insertions, 4 deletions
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 <b>validate_only</b> is false, set configured_client_ports to the * new list of ports parsed from <b>options</b>. **/ -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) */ |