summaryrefslogtreecommitdiff
path: root/src/test/test_policy.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-20 10:52:56 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-20 10:52:56 -0500
commitcbc1b8a4f75d449a0843451954568e0c8498821e (patch)
treece130537d11e56b6d1228aef5ce805bac89ea6a1 /src/test/test_policy.c
parente3cf39cefd24e2cc0d70a1726ac19fc86e4e47e7 (diff)
downloadtor-cbc1b8a4f75d449a0843451954568e0c8498821e.tar.gz
tor-cbc1b8a4f75d449a0843451954568e0c8498821e.zip
fix "make check-spaces"
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r--src/test/test_policy.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 4cf56c8b3a..52360f3c79 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -681,7 +681,7 @@ test_policies_reject_port_address(void *arg)
addr_policy_list_free(policy);
policy = NULL;
-done:
+ done:
addr_policy_list_free(policy);
if (test_configured_ports) {
SMARTLIST_FOREACH(test_configured_ports,
@@ -826,7 +826,8 @@ test_dump_exit_policy_to_string(void *arg)
}
static routerinfo_t *mock_desc_routerinfo = NULL;
-static const routerinfo_t *mock_router_get_my_routerinfo(void)
+static const routerinfo_t *
+mock_router_get_my_routerinfo(void)
{
return mock_desc_routerinfo;
}
@@ -948,7 +949,7 @@ test_policies_getinfo_helper_policies(void *arg)
tt_assert(strlen(answer) == ipv4_len + ipv6_len + 1);
tor_free(answer);
-done:
+ done:
tor_free(answer);
UNMOCK(get_options);
UNMOCK(router_get_my_routerinfo);
@@ -966,7 +967,8 @@ struct testcase_t policy_tests[] = {
{ "getinfo_helper_policies", test_policies_getinfo_helper_policies, 0, NULL,
NULL },
{ "reject_exit_address", test_policies_reject_exit_address, 0, NULL, NULL },
- { "reject_interface_address", test_policies_reject_interface_address, 0, NULL, NULL },
+ { "reject_interface_address", test_policies_reject_interface_address, 0,
+ NULL, NULL },
{ "reject_port_address", test_policies_reject_port_address, 0, NULL, NULL },
END_OF_TESTCASES
};