diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-29 00:38:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:14:27 -0400 |
commit | d84d20cbb2c8ca8d248378ce21f0d3969f9b5ef8 (patch) | |
tree | b9e5cb86aa7867734fb9fc49f30606ccdc0fb0f4 /src/or/rendservice.c | |
parent | fe309e7ad633bee36e175e600f0b9a0ac18cf981 (diff) | |
download | tor-d84d20cbb2c8ca8d248378ce21f0d3969f9b5ef8.tar.gz tor-d84d20cbb2c8ca8d248378ce21f0d3969f9b5ef8.zip |
Try to make most routerinfo_t interfaces const
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index b0d791529b..f6769d5580 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1001,7 +1001,7 @@ rend_service_introduce(origin_circuit_t *circuit, const char *request, } else { char *rp_nickname; size_t nickname_field_len; - routerinfo_t *router; + const routerinfo_t *router; int version; if (*buf == 1) { rp_nickname = buf+1; @@ -1754,7 +1754,7 @@ void rend_services_introduce(void) { int i,j,r; - routerinfo_t *router; + const routerinfo_t *router; rend_service_t *service; rend_intro_point_t *intro; int changed, prev_intro_nodes; @@ -1807,7 +1807,7 @@ rend_services_introduce(void) changed = 1; } if (router) - smartlist_add(intro_routers, router); + smartlist_add(intro_routers, (void*)router); } /* We have enough intro points, and the intro points we thought we had were @@ -1848,7 +1848,7 @@ rend_services_introduce(void) break; } changed = 1; - smartlist_add(intro_routers, router); + smartlist_add(intro_routers, (void*)router); intro = tor_malloc_zero(sizeof(rend_intro_point_t)); intro->extend_info = extend_info_from_router(router); intro->intro_key = crypto_new_pk_env(); |