]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make input argument const in set_routerstatus_from_routerinfo.
authorNick Mathewson <nickm@torproject.org>
Mon, 3 Dec 2018 17:34:29 +0000 (12:34 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 3 Dec 2018 17:34:29 +0000 (12:34 -0500)
src/feature/dirauth/voteflags.c
src/feature/dirauth/voteflags.h

index 5adf21ad11316e1a7891a85d99efdeca16069da4..aab322d96f66618de201d1b37e200b60610f46a1 100644 (file)
@@ -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)
 {
index 743a666cc8308155c093a590f48b4b6d2f6f4c48..8dce9fbb0407cd514fa549ef5a7afabeb24320e9 100644 (file)
@@ -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);