diff options
author | Neel Chauhan <neel@neelc.org> | 2018-04-27 19:14:59 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-01 08:51:16 -0400 |
commit | 5458ff20a5a8d76c6e8abe80167bd84fa157038f (patch) | |
tree | 8334d14a6e0560a340c0cf4d85f9fc4e198f7f91 /src/test/test_policy.c | |
parent | ddb2b965dec20e105eae02b848d6c82359c21132 (diff) | |
download | tor-5458ff20a5a8d76c6e8abe80167bd84fa157038f.tar.gz tor-5458ff20a5a8d76c6e8abe80167bd84fa157038f.zip |
Remove the return value from the fascist_firewall_choose_address_* family of functions
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r-- | src/test/test_policy.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c index f8aa8ac40b..f180585861 100644 --- a/src/test/test_policy.c +++ b/src/test/test_policy.c @@ -1923,11 +1923,8 @@ test_policies_fascist_firewall_allows_address(void *arg) tor_addr_port_t chosen_rs_ap; \ tor_addr_make_null(&chosen_rs_ap.addr, AF_INET); \ chosen_rs_ap.port = 0; \ - tt_int_op(fascist_firewall_choose_address_rs(&(fake_rs), \ - (fw_connection), \ - (pref_only), \ - &chosen_rs_ap), \ - OP_EQ, (expect_rv)); \ + fascist_firewall_choose_address_rs(&(fake_rs), (fw_connection), \ + (pref_only), &chosen_rs_ap); \ tt_assert(tor_addr_eq(&(expect_ap).addr, &chosen_rs_ap.addr)); \ tt_int_op((expect_ap).port, OP_EQ, chosen_rs_ap.port); \ STMT_END @@ -1940,11 +1937,8 @@ test_policies_fascist_firewall_allows_address(void *arg) tor_addr_port_t chosen_node_ap; \ tor_addr_make_null(&chosen_node_ap.addr, AF_INET); \ chosen_node_ap.port = 0; \ - tt_int_op(fascist_firewall_choose_address_node(&(fake_node), \ - (fw_connection), \ - (pref_only), \ - &chosen_node_ap), \ - OP_EQ, (expect_rv)); \ + fascist_firewall_choose_address_node(&(fake_node),(fw_connection), \ + (pref_only), &chosen_node_ap); \ tt_assert(tor_addr_eq(&(expect_ap).addr, &chosen_node_ap.addr)); \ tt_int_op((expect_ap).port, OP_EQ, chosen_node_ap.port); \ STMT_END |