summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-02-08 08:34:18 -0500
committerNick Mathewson <nickm@torproject.org>2016-02-08 08:34:18 -0500
commit92048a1b43024d338e0b3fd1fd36d5255b98358e (patch)
tree1c63817ecc1fd71d7a29d079803ee74e72903199 /src/or/router.c
parent9f6589d65a26388ac4a8e73a9b6e00a0472bac0b (diff)
downloadtor-92048a1b43024d338e0b3fd1fd36d5255b98358e.tar.gz
tor-92048a1b43024d338e0b3fd1fd36d5255b98358e.zip
Add missing consts; my fault.
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index ff21f41123..6d3582f479 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1739,7 +1739,7 @@ router_upload_dir_desc_to_dirservers(int force)
int
router_compare_to_my_exit_policy(const tor_addr_t *addr, uint16_t port)
{
- routerinfo_t *me = router_get_my_routerinfo();
+ const routerinfo_t *me = router_get_my_routerinfo();
if (!me) /* make sure routerinfo exists */
return -1;
@@ -1836,7 +1836,7 @@ const char *
router_get_my_descriptor(void)
{
const char *body;
- routerinfo_t *me = router_get_my_routerinfo();
+ const routerinfo_t *me = router_get_my_routerinfo();
if (! me)
return NULL;
tor_assert(me->cache_info.saved_location == SAVED_NOWHERE);