diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-29 01:35:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:14:27 -0400 |
commit | 6dd7f85bc7fa9887736feb7604e76d7226d03ca5 (patch) | |
tree | 8c67dcbb38ca53b2d60f38c3f71dec0ab944d6e6 /src/or/dirserv.h | |
parent | d84d20cbb2c8ca8d248378ce21f0d3969f9b5ef8 (diff) | |
download | tor-6dd7f85bc7fa9887736feb7604e76d7226d03ca5.tar.gz tor-6dd7f85bc7fa9887736feb7604e76d7226d03ca5.zip |
Try to make most routerstatus_t interfaces const
Diffstat (limited to 'src/or/dirserv.h')
-rw-r--r-- | src/or/dirserv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.h b/src/or/dirserv.h index 9be4935a13..f14aee6149 100644 --- a/src/or/dirserv.h +++ b/src/or/dirserv.h @@ -105,7 +105,7 @@ void dirserv_single_reachability_test(time_t now, routerinfo_t *router); void dirserv_test_reachability(time_t now); int authdir_wants_to_reject_router(routerinfo_t *ri, const char **msg, int complain); -int dirserv_would_reject_router(routerstatus_t *rs); +int dirserv_would_reject_router(const routerstatus_t *rs); int dirserv_remove_old_statuses(smartlist_t *fps, time_t cutoff); int dirserv_have_any_serverdesc(smartlist_t *fps, int spool_src); int dirserv_have_any_microdesc(const smartlist_t *fps); @@ -114,7 +114,7 @@ size_t dirserv_estimate_data_size(smartlist_t *fps, int is_serverdescs, size_t dirserv_estimate_microdesc_size(const smartlist_t *fps, int compressed); int routerstatus_format_entry(char *buf, size_t buf_len, - routerstatus_t *rs, const char *platform, + const routerstatus_t *rs, const char *platform, routerstatus_format_type_t format); void dirserv_free_all(void); void cached_dir_decref(cached_dir_t *d); |