[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/maint-0.2.4] Make dirserv_cache_measured_bw() use a const measured_bw_line_t *



commit 75eb79a6aa4ab46ddd6bd5f9c1d7567f80ace68c
Author: Andrea Shepard <andrea@xxxxxxxxxxxxxx>
Date:   Thu Mar 7 03:42:14 2013 -0800

    Make dirserv_cache_measured_bw() use a const measured_bw_line_t *
---
 src/or/dirserv.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index b3a5177..1160f6b 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -85,7 +85,7 @@ static const signed_descriptor_t *get_signed_descriptor_by_fp(
                                                         time_t publish_cutoff);
 static was_router_added_t dirserv_add_extrainfo(extrainfo_t *ei,
                                                 const char **msg);
-static void dirserv_cache_measured_bw(measured_bw_line_t *parsed_line,
+static void dirserv_cache_measured_bw(const measured_bw_line_t *parsed_line,
                                       time_t as_of);
 static void dirserv_clear_measured_bw_cache(void);
 static void dirserv_expire_measured_bw_cache(time_t now);
@@ -2067,7 +2067,8 @@ static digestmap_t *mbw_cache = NULL;
 /** Store a measured bandwidth cache entry when reading the measured
  * bandwidths file. */
 static void
-dirserv_cache_measured_bw(measured_bw_line_t *parsed_line, time_t as_of)
+dirserv_cache_measured_bw(const measured_bw_line_t *parsed_line,
+                          time_t as_of)
 {
   mbw_cache_entry_t *e = NULL;
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits