aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2013-03-07 03:42:14 -0800
committerAndrea Shepard <andrea@torproject.org>2013-03-07 03:42:14 -0800
commit75eb79a6aa4ab46ddd6bd5f9c1d7567f80ace68c (patch)
tree13fb52a0a5742b22a171149964248fc71e7b5ad7 /src/or/dirserv.c
parent0efe96cae81a078301ba8806d821175c830627b9 (diff)
downloadtor-75eb79a6aa4ab46ddd6bd5f9c1d7567f80ace68c.tar.gz
tor-75eb79a6aa4ab46ddd6bd5f9c1d7567f80ace68c.zip
Make dirserv_cache_measured_bw() use a const measured_bw_line_t *
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index b3a5177eee..1160f6baf0 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;