diff options
author | Andrea Shepard <andrea@torproject.org> | 2013-03-07 05:05:56 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2013-03-07 05:05:56 -0800 |
commit | c7947619df826f6c4568c857178d54b8dee17749 (patch) | |
tree | 06b3326c2118d08e8591f7501e67539c671110b6 /src/or | |
parent | 75eb79a6aa4ab46ddd6bd5f9c1d7567f80ace68c (diff) | |
download | tor-c7947619df826f6c4568c857178d54b8dee17749.tar.gz tor-c7947619df826f6c4568c857178d54b8dee17749.zip |
More constness in dirserv.c
Diffstat (limited to 'src/or')
-rw-r--r-- | 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 1160f6baf0..1846dc1ba2 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; /* |