summaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-07 13:11:06 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-07 13:11:06 -0500
commit90db39448db254d87228e4b7b34c61a4dce6a634 (patch)
treee00017416274282693e813e7eddf36cf434f181e /src/test/test_dir.c
parent1abd526c75eade83318a6ec6aff84d5f0f079a3b (diff)
downloadtor-90db39448db254d87228e4b7b34c61a4dce6a634.tar.gz
tor-90db39448db254d87228e4b7b34c61a4dce6a634.zip
Downgrade warnings about extrainfo incompatibility when reading cache
Fixes 13762.
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r--src/test/test_dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index c6594f8359..a8c6c6fad4 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -714,9 +714,10 @@ mock_get_by_ei_desc_digest(const char *d)
static smartlist_t *mock_ei_insert_list = NULL;
static was_router_added_t
-mock_ei_insert(routerlist_t *rl, extrainfo_t *ei)
+mock_ei_insert(routerlist_t *rl, extrainfo_t *ei, int warn_if_incompatible)
{
(void) rl;
+ (void) warn_if_incompatible;
smartlist_add(mock_ei_insert_list, ei);
return ROUTER_ADDED_SUCCESSFULLY;
}