aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_config.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-07-17 11:10:56 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-07-20 14:54:13 -0400
commit75434a1df18e3007c286ce48a1e981a4e96e3f82 (patch)
tree7278a53e948a351ab55b2afe76c1eb8db25943ae /src/test/test_config.c
parent230293c169f73923b290598a1df4872acf1dee68 (diff)
downloadtor-75434a1df18e3007c286ce48a1e981a4e96e3f82.tar.gz
tor-75434a1df18e3007c286ce48a1e981a4e96e3f82.zip
relay: Use flags in relay_find_addr_to_publish()
Instead of a boolean saying "cache_only" add the concept of flags so we add semantic through out the code and allow ourselves to have more options in the future. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r--src/test/test_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c
index 7496c7c57c..71b2cdf2f4 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -3846,11 +3846,11 @@ static bool mock_relay_find_addr_to_publish_result = true;
static bool
mock_relay_find_addr_to_publish(const or_options_t *options, int family,
- bool cache_only, tor_addr_t *addr_out)
+ int flags, tor_addr_t *addr_out)
{
(void) options;
(void) family;
- (void) cache_only;
+ (void) flags;
(void) addr_out;
return mock_relay_find_addr_to_publish_result;
}