aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirclient/dirclient_modes.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-01-15 11:57:49 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-16 07:48:17 -0500
commit6ba4b5e5da9089a061ed64c0e172e72f71c11e75 (patch)
treeed703d5cb00a8d1ab2b08ddb7f94bb68cf40ead1 /src/feature/dirclient/dirclient_modes.c
parent8d1f31190e12d337ef37c5ba541b195d72dfd663 (diff)
downloadtor-6ba4b5e5da9089a061ed64c0e172e72f71c11e75.tar.gz
tor-6ba4b5e5da9089a061ed64c0e172e72f71c11e75.zip
Rename dirclient_modes.h identifiers to start with dirclient_
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ directory_must_use_begindir dirclient_must_use_begindir \ directory_fetches_from_authorities dirclient_fetches_from_authorities \ directory_fetches_dir_info_early dirclient_fetches_dir_info_early \ directory_fetches_dir_info_later dirclient_fetches_dir_info_later \ directory_too_idle_to_fetch_descriptors dirclient_too_idle_to_fetch_descriptors
Diffstat (limited to 'src/feature/dirclient/dirclient_modes.c')
-rw-r--r--src/feature/dirclient/dirclient_modes.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/feature/dirclient/dirclient_modes.c b/src/feature/dirclient/dirclient_modes.c
index 8a98f02769..23fd1a2f6e 100644
--- a/src/feature/dirclient/dirclient_modes.c
+++ b/src/feature/dirclient/dirclient_modes.c
@@ -26,7 +26,7 @@
/* Should this tor instance only use begindir for all its directory requests?
*/
int
-directory_must_use_begindir(const or_options_t *options)
+dirclient_must_use_begindir(const or_options_t *options)
{
/* Clients, onion services, and bridges must use begindir,
* relays and authorities do not have to */
@@ -36,7 +36,7 @@ directory_must_use_begindir(const or_options_t *options)
/** Return 1 if we fetch our directory material directly from the
* authorities, rather than from a mirror. */
int
-directory_fetches_from_authorities(const or_options_t *options)
+dirclient_fetches_from_authorities(const or_options_t *options)
{
const routerinfo_t *me;
uint32_t addr;
@@ -64,9 +64,9 @@ directory_fetches_from_authorities(const or_options_t *options)
* on the "mirror" schedule rather than the "client" schedule.
*/
int
-directory_fetches_dir_info_early(const or_options_t *options)
+dirclient_fetches_dir_info_early(const or_options_t *options)
{
- return directory_fetches_from_authorities(options);
+ return dirclient_fetches_from_authorities(options);
}
/** Return 1 if we should fetch new networkstatuses, descriptors, etc
@@ -76,7 +76,7 @@ directory_fetches_dir_info_early(const or_options_t *options)
* client as a directory guard.
*/
int
-directory_fetches_dir_info_later(const or_options_t *options)
+dirclient_fetches_dir_info_later(const or_options_t *options)
{
return options->UseBridges != 0;
}
@@ -86,7 +86,7 @@ directory_fetches_dir_info_later(const or_options_t *options)
* lately.
*/
int
-directory_too_idle_to_fetch_descriptors(const or_options_t *options,
+dirclient_too_idle_to_fetch_descriptors(const or_options_t *options,
time_t now)
{
return !directory_caches_dir_info(options) &&