[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/release-0.2.4] More constness in dirserv.c
commit c7947619df826f6c4568c857178d54b8dee17749
Author: Andrea Shepard <andrea@xxxxxxxxxxxxxx>
Date: Thu Mar 7 05:05:56 2013 -0800
More constness in dirserv.c
---
src/or/dirserv.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 1160f6b..1846dc1 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -90,9 +90,9 @@ static void dirserv_cache_measured_bw(const measured_bw_line_t *parsed_line,
static void dirserv_clear_measured_bw_cache(void);
static void dirserv_expire_measured_bw_cache(time_t now);
static int dirserv_get_measured_bw_cache_size(void);
-static int dirserv_query_measured_bw_cache(char *node_id, long *bw_out,
+static int dirserv_query_measured_bw_cache(const char *node_id, long *bw_out,
time_t *as_of_out);
-static uint32_t dirserv_get_bandwidth_for_router(routerinfo_t *ri);
+static uint32_t dirserv_get_bandwidth_for_router(const routerinfo_t *ri);
/************** Measured Bandwidth parsing code ******/
#define MAX_MEASUREMENT_AGE (3*24*60*60) /* 3 days */
@@ -2162,7 +2162,7 @@ dirserv_get_measured_bw_cache_size(void)
/** Query the cache by identity digest, return value indicates whether
* we found it. */
static int
-dirserv_query_measured_bw_cache(char *node_id, long *bw_out,
+dirserv_query_measured_bw_cache(const char *node_id, long *bw_out,
time_t *as_of_out)
{
mbw_cache_entry_t *v = NULL;
@@ -2185,7 +2185,7 @@ dirserv_query_measured_bw_cache(char *node_id, long *bw_out,
* preferring measured to advertised values if available. */
static uint32_t
-dirserv_get_bandwidth_for_router(routerinfo_t *ri)
+dirserv_get_bandwidth_for_router(const routerinfo_t *ri)
{
uint32_t bw = 0;
/*
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits