aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-21 12:16:53 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-21 12:47:09 -0400
commit39146383fc30ee7cce61e3d5d753ae8605dddc22 (patch)
tree4a9a21b3781733eeac924db124528857aaa40c73 /src/app
parentf57c31e4befebbee60d56693d8bac1b4a4918a97 (diff)
downloadtor-39146383fc30ee7cce61e3d5d753ae8605dddc22.tar.gz
tor-39146383fc30ee7cce61e3d5d753ae8605dddc22.zip
Rename get_primary_dir_port()
Also, remove get_primary_or_port() -- nothing used it.
Diffstat (limited to 'src/app')
-rw-r--r--src/app/config/config.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app/config/config.h b/src/app/config/config.h
index fdffd66683..ee39490072 100644
--- a/src/app/config/config.h
+++ b/src/app/config/config.h
@@ -160,10 +160,8 @@ MOCK_DECL(const smartlist_t *,get_configured_ports,(void));
int port_binds_ipv4(const port_cfg_t *port);
int port_binds_ipv6(const port_cfg_t *port);
int portconf_get_first_advertised_port(int listener_type,
- int address_family);
-#define get_primary_or_port() \
- (portconf_get_first_advertised_port(CONN_TYPE_OR_LISTENER, AF_INET))
-#define get_primary_dir_port() \
+ int address_family);
+#define portconf_get_primary_dir_port() \
(portconf_get_first_advertised_port(CONN_TYPE_DIR_LISTENER, AF_INET))
const tor_addr_t *portconf_get_first_advertised_addr(int listener_type,
int address_family);