diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-07-17 10:41:24 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-07-17 10:41:24 -0400 |
commit | efdf6c711810cfa951741071cb7b67c3a76f2651 (patch) | |
tree | 7190e964456734c891eb33c7f539ffd179c55075 /src/or/rendservice.c | |
parent | 7faf115dfffaf12cdae98eac71fc6811059c6657 (diff) | |
download | tor-efdf6c711810cfa951741071cb7b67c3a76f2651.tar.gz tor-efdf6c711810cfa951741071cb7b67c3a76f2651.zip |
Fix the remaining instances of nexted SMARTLIST_FOREACH
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 6a51874699..6af4778dfc 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -500,16 +500,16 @@ rend_config_services(const or_options_t *options, int validate_only) /* Copy introduction points to new services. */ /* XXXX This is O(n^2), but it's only called on reconfigure, so it's * probably ok? */ - SMARTLIST_FOREACH(rend_service_list, rend_service_t *, new, { - SMARTLIST_FOREACH(old_service_list, rend_service_t *, old, { + SMARTLIST_FOREACH_BEGIN(rend_service_list, rend_service_t *, new) { + SMARTLIST_FOREACH_BEGIN(old_service_list, rend_service_t *, old) { if (!strcmp(old->directory, new->directory)) { smartlist_add_all(new->intro_nodes, old->intro_nodes); smartlist_clear(old->intro_nodes); smartlist_add(surviving_services, old); break; } - }); - }); + } SMARTLIST_FOREACH_END(old); + } SMARTLIST_FOREACH_END(new); /* Close introduction circuits of services we don't serve anymore. */ /* XXXX it would be nicer if we had a nicer abstraction to use here, |