aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuit.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-03 00:58:54 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-03 00:58:54 +0000
commitfc4d15baf6d3833015feeceb0c9374304bb9900c (patch)
tree21bff329b403fd81e2df0264c9d4f7b96d8781c9 /src/or/circuit.c
parentbbc94849576878955b58e1297e43d2b83db576cb (diff)
downloadtor-fc4d15baf6d3833015feeceb0c9374304bb9900c.tar
tor-fc4d15baf6d3833015feeceb0c9374304bb9900c.tar.gz
Hide smartlist internals
svn:r1451
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r--src/or/circuit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c
index 81944fd03..241599bba 100644
--- a/src/or/circuit.c
+++ b/src/or/circuit.c
@@ -1033,8 +1033,8 @@ void circuit_expire_unused_circuits(void) {
smartlist_add(unused_open_circs, circ);
}
}
- for (i = MAX_UNUSED_OPEN_CIRCUITS; i < unused_open_circs->num_used; ++i) {
- circuit_t *circ=(circuit_t*)(unused_open_circs->list[i]);
+ for (i = MAX_UNUSED_OPEN_CIRCUITS; i < smartlist_len(unused_open_circs); ++i) {
+ circuit_t *circ = smartlist_get(unused_open_circs, i);
circuit_mark_for_close(circ);
}
smartlist_free(unused_open_circs);