summaryrefslogtreecommitdiff
path: root/src/feature/nodelist
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-02-06 09:49:00 -0500
committerDavid Goulet <dgoulet@torproject.org>2020-02-11 10:15:23 -0500
commit7b4d9fabefa97e1121482ace6bc712cd2b00ff0f (patch)
treeaf50b987d8d4e5b04ffb575ceb97562a521fe8c2 /src/feature/nodelist
parent33414e5494b56f3f677d022bfb4bb1ed99191032 (diff)
downloadtor-7b4d9fabefa97e1121482ace6bc712cd2b00ff0f.tar.gz
tor-7b4d9fabefa97e1121482ace6bc712cd2b00ff0f.zip
dirauth: Rename function for better clarity
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/nodelist')
-rw-r--r--src/feature/nodelist/dirlist.c2
-rw-r--r--src/feature/nodelist/dirlist.h2
-rw-r--r--src/feature/nodelist/nodelist.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/feature/nodelist/dirlist.c b/src/feature/nodelist/dirlist.c
index 749ff06a57..ccbb378513 100644
--- a/src/feature/nodelist/dirlist.c
+++ b/src/feature/nodelist/dirlist.c
@@ -67,7 +67,7 @@ add_trusted_dir_to_nodelist_addr_set(const dir_server_t *dir)
/** Go over the trusted directory server list and add their address(es) to the
* nodelist address set. This is called everytime a new consensus is set. */
MOCK_IMPL(void,
-dirlist_add_trusted_addresses, (void))
+dirlist_add_trusted_dir_addresses, (void))
{
if (!trusted_dir_servers) {
return;
diff --git a/src/feature/nodelist/dirlist.h b/src/feature/nodelist/dirlist.h
index d4bdb4cedc..c49162f1e9 100644
--- a/src/feature/nodelist/dirlist.h
+++ b/src/feature/nodelist/dirlist.h
@@ -44,6 +44,6 @@ void dir_server_add(dir_server_t *ent);
void clear_dir_servers(void);
void dirlist_free_all(void);
-MOCK_DECL(void, dirlist_add_trusted_addresses, (void));
+MOCK_DECL(void, dirlist_add_trusted_dir_addresses, (void));
#endif /* !defined(TOR_DIRLIST_H) */
diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c
index 34214880d9..9191173c3b 100644
--- a/src/feature/nodelist/nodelist.c
+++ b/src/feature/nodelist/nodelist.c
@@ -691,7 +691,7 @@ nodelist_set_consensus(networkstatus_t *ns)
} SMARTLIST_FOREACH_END(node);
/* Then, add all trusted configured directories. Some might not be in the
* consensus so make sure we know them. */
- dirlist_add_trusted_addresses();
+ dirlist_add_trusted_dir_addresses();
if (! authdir) {
SMARTLIST_FOREACH_BEGIN(the_nodelist->nodes, node_t *, node) {