aboutsummaryrefslogtreecommitdiff
path: root/src/or/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/status.c')
-rw-r--r--src/or/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/status.c b/src/or/status.c
index afaa9de840..b7f7d1b778 100644
--- a/src/or/status.c
+++ b/src/or/status.c
@@ -28,11 +28,11 @@ static void log_accounting(const time_t now, const or_options_t *options);
STATIC int
count_circuits(void)
{
- circuit_t *circ;
int nr=0;
- TOR_LIST_FOREACH(circ, circuit_get_global_list(), head)
+ SMARTLIST_FOREACH_BEGIN(circuit_get_global_list(), circuit_t *, circ)
nr++;
+ SMARTLIST_FOREACH_END(circ);
return nr;
}