From d84d20cbb2c8ca8d248378ce21f0d3969f9b5ef8 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 29 Sep 2010 00:38:32 -0400 Subject: Try to make most routerinfo_t interfaces const --- src/or/router.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/router.h') diff --git a/src/or/router.h b/src/or/router.h index c17fc78bd0..13ea6f80e6 100644 --- a/src/or/router.h +++ b/src/or/router.h @@ -62,12 +62,12 @@ void router_new_address_suggestion(const char *suggestion, const dir_connection_t *d_conn); int router_compare_to_my_exit_policy(edge_connection_t *conn); int router_my_exit_policy_is_reject_star(void); -routerinfo_t *router_get_my_routerinfo(void); +const routerinfo_t *router_get_my_routerinfo(void); extrainfo_t *router_get_my_extrainfo(void); const char *router_get_my_descriptor(void); int router_digest_is_me(const char *digest); int router_extrainfo_digest_is_me(const char *digest); -int router_is_me(routerinfo_t *router); +int router_is_me(const routerinfo_t *router); int router_fingerprint_is_me(const char *fp); int router_pick_published_address(or_options_t *options, uint32_t *addr); int router_rebuild_descriptor(int force); -- cgit v1.2.3-54-g00ecf