Skip to content
Snippets Groups Projects
Commit 2e951f8d authored by rl1987's avatar rl1987 Committed by Nick Mathewson
Browse files

Whitespace fixes

parent 0eaf8294
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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 *:*");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment