[tor-commits] [tor/master] Make input argument const in set_routerstatus_from_routerinfo.
nickm at torproject.org
nickm at torproject.org
Wed Dec 5 14:24:59 UTC 2018
commit 417a324a8577b0c61185c9d06eb72fbc483d984b
Author: Nick Mathewson <nickm at torproject.org>
Date: Mon Dec 3 12:34:29 2018 -0500
Make input argument const in set_routerstatus_from_routerinfo.
---
src/feature/dirauth/voteflags.c | 4 ++--
src/feature/dirauth/voteflags.h | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/feature/dirauth/voteflags.c b/src/feature/dirauth/voteflags.c
index 5adf21ad1..aab322d96 100644
--- a/src/feature/dirauth/voteflags.c
+++ b/src/feature/dirauth/voteflags.c
@@ -95,7 +95,7 @@ real_uptime(const routerinfo_t *router, time_t now)
*/
static int
dirserv_thinks_router_is_unreliable(time_t now,
- routerinfo_t *router,
+ const routerinfo_t *router,
int need_uptime, int need_capacity)
{
if (need_uptime) {
@@ -541,7 +541,7 @@ dirserv_set_router_is_running(routerinfo_t *router, time_t now)
void
set_routerstatus_from_routerinfo(routerstatus_t *rs,
node_t *node,
- routerinfo_t *ri,
+ const routerinfo_t *ri,
time_t now,
int listbadexits)
{
diff --git a/src/feature/dirauth/voteflags.h b/src/feature/dirauth/voteflags.h
index 743a666cc..8dce9fbb0 100644
--- a/src/feature/dirauth/voteflags.h
+++ b/src/feature/dirauth/voteflags.h
@@ -19,7 +19,8 @@ int running_long_enough_to_decide_unreachable(void);
void set_routerstatus_from_routerinfo(routerstatus_t *rs,
node_t *node,
- routerinfo_t *ri, time_t now,
+ const routerinfo_t *ri,
+ time_t now,
int listbadexits);
void dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil);
More information about the tor-commits
mailing list