diff options
author | Roger Dingledine <arma@torproject.org> | 2016-11-16 16:13:03 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2016-11-16 16:13:03 -0500 |
commit | 3bb40b213b26467df2604023ae29d915dc740128 (patch) | |
tree | 91e51fc39ee26198b5ca161272daf1732cf0420d /src/test | |
parent | caf7422871f058269b6b53e279463a130a372fc1 (diff) | |
download | tor-3bb40b213b26467df2604023ae29d915dc740128.tar.gz tor-3bb40b213b26467df2604023ae29d915dc740128.zip |
refactor router_pick_published_address to have another arg
no change in behavior except fewer log entries in the case where we use
a cached result.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 384bff410f..2fc37b0bb8 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -3480,10 +3480,12 @@ test_config_default_dir_servers(void *arg) static int mock_router_pick_published_address_result = 0; static int -mock_router_pick_published_address(const or_options_t *options, uint32_t *addr) +mock_router_pick_published_address(const or_options_t *options, + uint32_t *addr, int cache_only) { (void)options; (void)addr; + (void)cache_only; return mock_router_pick_published_address_result; } |