aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_voting_flags.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-30 12:42:33 -0400
committerNick Mathewson <nickm@torproject.org>2019-05-02 09:22:13 -0400
commit6f42efaa5926a2f1be89e3b591311f2130931db8 (patch)
treee4cc3cd0485c24e4c4362c32e66f6b46ec2e92ee /src/test/test_voting_flags.c
parent996f7c75ba6abd9c4bc884f2c9a3b62889da9134 (diff)
downloadtor-6f42efaa5926a2f1be89e3b591311f2130931db8.tar.gz
tor-6f42efaa5926a2f1be89e3b591311f2130931db8.zip
Move voteflags.[ch] to become dirauth only.
For various reasons, this was a nontrivial movement. There are several places in the code where we do something like "update the flags on this routerstatus or node if we're an authority", and at least one where we pretended to be an authority when we weren't.
Diffstat (limited to 'src/test/test_voting_flags.c')
-rw-r--r--src/test/test_voting_flags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_voting_flags.c b/src/test/test_voting_flags.c
index 5c9eebd00e..c8111ea5df 100644
--- a/src/test/test_voting_flags.c
+++ b/src/test/test_voting_flags.c
@@ -60,7 +60,7 @@ check_result(flag_vote_test_cfg_t *c)
bool result = false;
routerstatus_t rs;
memset(&rs, 0, sizeof(rs));
- set_routerstatus_from_routerinfo(&rs, &c->node, &c->ri, c->now, 0);
+ dirauth_set_routerstatus_from_routerinfo(&rs, &c->node, &c->ri, c->now, 0);
tt_i64_op(rs.published_on, OP_EQ, c->expected.published_on);
tt_str_op(rs.nickname, OP_EQ, c->expected.nickname);