aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-02-11 12:50:55 -0500
committerNick Mathewson <nickm@torproject.org>2016-02-11 12:50:55 -0500
commit838d4dee121b311647ae4edd7e220436571c449c (patch)
tree94899728d51c0b78fdb4fb8c24ccbc4ec7188cc3
parent2b5ff5259408bf7dc17939c6f15eb9e1e68215fa (diff)
downloadtor-838d4dee121b311647ae4edd7e220436571c449c.tar.gz
tor-838d4dee121b311647ae4edd7e220436571c449c.zip
make check-spaces
-rw-r--r--src/or/entrynodes.c5
-rw-r--r--src/or/or.h4
-rw-r--r--src/or/policies.c15
-rw-r--r--src/test/test_policy.c1
4 files changed, 13 insertions, 12 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index a4b935065d..95d9fecfe4 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -2124,8 +2124,9 @@ launch_direct_bridge_descriptor_fetch(bridge_info_t *bridge)
* it. If we */
if (!fascist_firewall_allows_address_addr(&bridge->addr, bridge->port,
FIREWALL_OR_CONNECTION, 0)) {
- log_notice(LD_CONFIG, "Tried to fetch a descriptor directly from a bridge, "
- "but that bridge is not reachable through our firewall.");
+ log_notice(LD_CONFIG, "Tried to fetch a descriptor directly from a "
+ "bridge, but that bridge is not reachable through our "
+ "firewall.");
return;
}
diff --git a/src/or/or.h b/src/or/or.h
index 04bd42ab15..f438212b31 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -4092,8 +4092,8 @@ typedef struct {
int ClientUseIPv6;
/** If true, prefer an IPv6 OR port over an IPv4 one for entry node
* connections. If auto, bridge clients prefer IPv6, and other clients
- * prefer IPv4. Use fascist_firewall_prefer_ipv6_orport() instead of accessing
- * this value directly. */
+ * prefer IPv4. Use fascist_firewall_prefer_ipv6_orport() instead of
+ * accessing this value directly. */
int ClientPreferIPv6ORPort;
/** If true, prefer an IPv6 directory port over an IPv4 one for direct
* directory connections. If auto, bridge clients prefer IPv6, and other
diff --git a/src/or/policies.c b/src/or/policies.c
index faa39adfd6..984ab6acf9 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -421,7 +421,8 @@ fascist_firewall_allows_address(const tor_addr_t *addr,
/** Is this client configured to use IPv6?
*/
-int fascist_firewall_use_ipv6(const or_options_t *options)
+int
+fascist_firewall_use_ipv6(const or_options_t *options)
{
/* Clients use IPv6 if it's set, or they use bridges, or they don't use
* IPv4 */
@@ -513,14 +514,14 @@ fascist_firewall_allows_address_addr(const tor_addr_t *addr, uint16_t port,
if (fw_connection == FIREWALL_OR_CONNECTION) {
return fascist_firewall_allows_address(addr, port,
- reachable_or_addr_policy,
- pref_only,
- fascist_firewall_prefer_ipv6_orport(options));
+ reachable_or_addr_policy,
+ pref_only,
+ fascist_firewall_prefer_ipv6_orport(options));
} else if (fw_connection == FIREWALL_DIR_CONNECTION) {
return fascist_firewall_allows_address(addr, port,
- reachable_dir_addr_policy,
- pref_only,
- fascist_firewall_prefer_ipv6_dirport(options));
+ reachable_dir_addr_policy,
+ pref_only,
+ fascist_firewall_prefer_ipv6_dirport(options));
} else {
log_warn(LD_BUG, "Bad firewall_connection_t value %d.",
fw_connection);
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index c044d9f210..3688909acb 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -1546,7 +1546,6 @@ test_policies_fascist_firewall_choose_address(void *arg)
FIREWALL_DIR_CONNECTION, 1)
== &ipv6_dir_ap);
-
/* In the default configuration (Auto / IPv6 off), bridge clients should
* still use IPv6, and only prefer it for bridges configured with an IPv6
* address, regardless of ClientUseIPv6. */