Try to make most routerinfo_t interfaces const

This commit is contained in:
Nick Mathewson
2010-09-29 00:38:32 -04:00
parent fe309e7ad6
commit d84d20cbb2
26 changed files with 251 additions and 234 deletions
+1 -1
View File
@@ -2083,7 +2083,7 @@ routers_update_status_from_consensus_networkstatus(smartlist_t *routers,
/* If we _are_ an authority, we should check whether this router
* is one that will cause us to need a reachability test. */
routerinfo_t *old_router =
router_get_by_digest(router->cache_info.identity_digest);
router_get_mutable_by_digest(router->cache_info.identity_digest);
if (old_router != router) {
router->needs_retest_if_added =
dirserv_should_launch_reachability_test(router, old_router);