diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-07-21 12:02:01 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-07-21 12:02:01 -0400 |
commit | fda9d7f5ed0758957b98d3b16a62bfd785f1917c (patch) | |
tree | 05be8330fd1ce24273ff80c0e070c58eaaf3b9d5 /src/app/config/resolve_addr.h | |
parent | e8497bfaa70ef7ce8c48bc2c5464d6fddb8fcff1 (diff) | |
download | tor-fda9d7f5ed0758957b98d3b16a62bfd785f1917c.tar.gz tor-fda9d7f5ed0758957b98d3b16a62bfd785f1917c.zip |
Rename get_first_advertised_{addr,port}_by_type_af().
Rationale: these don't actually give the first advertised
address/port, but instead give us the first such port that we are
_configured_ to advertise. Putting them in a portconf_ namespace
therefore makes sense.
Similarly, there are no other functions that get the first
configured advertised addr/port, so the "by_type_af()" part is needless.
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
get_first_advertised_addr_by_type_af portconf_get_first_advertised_addr \
get_first_advertised_port_by_type_af portconf_get_first_advertised_port
Diffstat (limited to 'src/app/config/resolve_addr.h')
-rw-r--r-- | src/app/config/resolve_addr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/resolve_addr.h b/src/app/config/resolve_addr.h index 369f621fa9..c279d19f6e 100644 --- a/src/app/config/resolve_addr.h +++ b/src/app/config/resolve_addr.h @@ -15,7 +15,7 @@ #include "app/config/or_options_st.h" #define get_orport_addr(family) \ - (get_first_advertised_addr_by_type_af(CONN_TYPE_OR_LISTENER, family)) + (portconf_get_first_advertised_addr(CONN_TYPE_OR_LISTENER, family)) bool find_my_address(const or_options_t *options, int family, int warn_severity, tor_addr_t *addr_out, |