From 1047e7dcb05cbf4c98276d00c157cf0506b451d5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 22 Mar 2013 14:25:34 -0400 Subject: Use TOR_SIMPLEQ for packed_cell_t --- src/or/circuitmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/circuitmux.c') diff --git a/src/or/circuitmux.c b/src/or/circuitmux.c index 081416368..77cb2f98b 100644 --- a/src/or/circuitmux.c +++ b/src/or/circuitmux.c @@ -510,7 +510,7 @@ circuitmux_mark_destroyed_circids_usable(circuitmux_t *cmux, channel_t *chan) { packed_cell_t *cell; int n_bad = 0; - for (cell = cmux->destroy_cell_queue.head; cell; cell = cell->next) { + TOR_SIMPLEQ_FOREACH(cell, &cmux->destroy_cell_queue.head, next) { circid_t circid = 0; if (packed_cell_is_destroy(chan, cell, &circid)) { channel_mark_circid_usable(chan, circid); -- cgit v1.2.3