mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
Whitespace changes.
This commit is contained in:
parent
39ec781b8f
commit
32d10bdfb3
@ -65,7 +65,8 @@ int did_last_state_file_write_fail(void);
|
|||||||
int or_state_save(time_t now);
|
int or_state_save(time_t now);
|
||||||
|
|
||||||
const smartlist_t *get_configured_ports(void);
|
const smartlist_t *get_configured_ports(void);
|
||||||
int get_first_advertised_port_by_type_af(int listener_type, int address_family);
|
int get_first_advertised_port_by_type_af(int listener_type,
|
||||||
|
int address_family);
|
||||||
#define get_primary_or_port() \
|
#define get_primary_or_port() \
|
||||||
(get_first_advertised_port_by_type_af(CONN_TYPE_OR_LISTENER, AF_INET))
|
(get_first_advertised_port_by_type_af(CONN_TYPE_OR_LISTENER, AF_INET))
|
||||||
#define get_primary_dir_port() \
|
#define get_primary_dir_port() \
|
||||||
|
@ -2121,7 +2121,6 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
|
|||||||
return (int)written+1;
|
return (int)written+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Copy the primary (IPv4) OR port (IP address and TCP port) for
|
/** Copy the primary (IPv4) OR port (IP address and TCP port) for
|
||||||
* <b>router</b> into *<b>ap_out</b>. */
|
* <b>router</b> into *<b>ap_out</b>. */
|
||||||
void
|
void
|
||||||
@ -2160,7 +2159,8 @@ router_get_pref_orport(const routerinfo_t *router, tor_addr_port_t *ap_out)
|
|||||||
/** Copy the preferred IPv6 OR port (IP address and TCP port) for
|
/** Copy the preferred IPv6 OR port (IP address and TCP port) for
|
||||||
* <b>router</b> into *<b>ap_out</b>. */
|
* <b>router</b> into *<b>ap_out</b>. */
|
||||||
void
|
void
|
||||||
router_get_pref_ipv6_orport(const routerinfo_t *router, tor_addr_port_t *ap_out)
|
router_get_pref_ipv6_orport(const routerinfo_t *router,
|
||||||
|
tor_addr_port_t *ap_out)
|
||||||
{
|
{
|
||||||
tor_assert(ap_out != NULL);
|
tor_assert(ap_out != NULL);
|
||||||
tor_addr_copy(&ap_out->addr, &router->ipv6_addr);
|
tor_addr_copy(&ap_out->addr, &router->ipv6_addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user