aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/voteflags.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-12-03 12:34:29 -0500
committerNick Mathewson <nickm@torproject.org>2018-12-03 12:34:29 -0500
commit417a324a8577b0c61185c9d06eb72fbc483d984b (patch)
treec623f42d32a7bee7fd23e9aff5bd5f84c3302c9a /src/feature/dirauth/voteflags.c
parent32213fa9ad8a306e1f3bade1c95b1ad95a136bd9 (diff)
downloadtor-417a324a8577b0c61185c9d06eb72fbc483d984b.tar.gz
tor-417a324a8577b0c61185c9d06eb72fbc483d984b.zip
Make input argument const in set_routerstatus_from_routerinfo.
Diffstat (limited to 'src/feature/dirauth/voteflags.c')
-rw-r--r--src/feature/dirauth/voteflags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/dirauth/voteflags.c b/src/feature/dirauth/voteflags.c
index 5adf21ad11..aab322d96f 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)
{