summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2014-09-14 17:07:05 +0300
committerNick Mathewson <nickm@torproject.org>2014-09-22 14:18:00 -0400
commit2e951f8dda4046d940b9268a8f02fe221098ab58 (patch)
tree42a7f47c0e7c65a2d901c903bc2fccffb3d542ed
parent0eaf82947d862852e59b17a1763e49d57de03873 (diff)
downloadtor-2e951f8dda4046d940b9268a8f02fe221098ab58.tar.gz
tor-2e951f8dda4046d940b9268a8f02fe221098ab58.zip
Whitespace fixes
-rw-r--r--src/or/policies.c9
-rw-r--r--src/test/test_policy.c8
2 files changed, 8 insertions, 9 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 9739fd5d7c..ffeda1fa4c 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -62,11 +62,10 @@ static const char *private_nets[] = {
NULL
};
-
-static int policies_parse_exit_policy_internal(config_line_t *cfg,
+static int policies_parse_exit_policy_internal(config_line_t *cfg,
smartlist_t **dest,
int ipv6_exit,
- int rejectprivate,
+ int rejectprivate,
uint32_t local_address,
int add_default_policy);
@@ -957,7 +956,7 @@ exit_policy_remove_redundancies(smartlist_t *dest)
static int
policies_parse_exit_policy_internal(config_line_t *cfg, smartlist_t **dest,
int ipv6_exit,
- int rejectprivate,
+ int rejectprivate,
uint32_t local_address,
int add_default_policy)
{
@@ -985,7 +984,7 @@ policies_parse_exit_policy_internal(config_line_t *cfg, smartlist_t **dest,
return 0;
}
-int
+int
policies_parse_exit_policy(config_line_t *cfg, smartlist_t **dest,
exit_policy_parser_cfg_t options,
uint32_t local_address)
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 5f044d05b7..f1196c255e 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -47,8 +47,8 @@ test_policy_summary_helper(const char *policy_str,
line.value = (char *)policy_str;
line.next = NULL;
- r = policies_parse_exit_policy(&line, &policy,
- EXIT_POLICY_IPV6_ENABLED |
+ r = policies_parse_exit_policy(&line, &policy,
+ EXIT_POLICY_IPV6_ENABLED |
EXIT_POLICY_ADD_DEFAULT ,0);
test_eq(r, 0);
summary = policy_summarize(policy, AF_INET);
@@ -199,10 +199,10 @@ test_policies_general(void *arg)
line.key = (char*)"foo";
line.value = (char*)"accept *:80,reject private:*,reject *:*";
line.next = NULL;
-
+
test_assert(0 == policies_parse_exit_policy(&line,&policy,
EXIT_POLICY_IPV6_ENABLED |
- EXIT_POLICY_ADD_DEFAULT,0));
+ EXIT_POLICY_ADD_DEFAULT,0));
test_assert(policy);
//test_streq(policy->string, "accept *:80");
//test_streq(policy->next->string, "reject *:*");