diff options
author | Neel Chauhan <neel@neelc.org> | 2020-05-17 15:10:43 -0700 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2020-05-17 15:19:39 -0700 |
commit | 087b466fcf64d4081508c7e176abebd9ac89bb93 (patch) | |
tree | 607711e5f443e6a4da768a794ba686ea4e3f0dd7 /src/feature/rend | |
parent | db4815dd8e7477803bc29c89284a7641b20ab5ba (diff) | |
download | tor-087b466fcf64d4081508c7e176abebd9ac89bb93.tar.gz tor-087b466fcf64d4081508c7e176abebd9ac89bb93.zip |
Declare variables in for loops in rend_service_dump_stats()
Diffstat (limited to 'src/feature/rend')
-rw-r--r-- | src/feature/rend/rendservice.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/feature/rend/rendservice.c b/src/feature/rend/rendservice.c index 10a3403166..9d7ff2d17f 100644 --- a/src/feature/rend/rendservice.c +++ b/src/feature/rend/rendservice.c @@ -4351,17 +4351,16 @@ rend_consider_descriptor_republication(void) void rend_service_dump_stats(int severity) { - int i,j; rend_service_t *service; rend_intro_point_t *intro; const char *safe_name; origin_circuit_t *circ; - for (i=0; i < smartlist_len(rend_service_list); ++i) { + for (int i = 0; i < smartlist_len(rend_service_list); ++i) { service = smartlist_get(rend_service_list, i); tor_log(severity, LD_GENERAL, "Service configured in %s:", rend_service_escaped_dir(service)); - for (j=0; j < smartlist_len(service->intro_nodes); ++j) { + for (int j = 0; j < smartlist_len(service->intro_nodes); ++j) { intro = smartlist_get(service->intro_nodes, j); safe_name = safe_str_client(intro->extend_info->nickname); |