aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-07-16 14:48:12 -0400
committerNick Mathewson <nickm@torproject.org>2013-07-16 14:48:12 -0400
commitc36bdbd53521a9b7d2213cde1f9f0f8fe8ac7441 (patch)
treea6d25aec6de660144755e8a34889bd6679334dab /src
parent7a4145c45aa0833af96cdb4b5c3fba90731c7037 (diff)
downloadtor-c36bdbd53521a9b7d2213cde1f9f0f8fe8ac7441.tar
tor-c36bdbd53521a9b7d2213cde1f9f0f8fe8ac7441.tar.gz
Re-do a cast in order to make old buggy freebsd gcc happy
Fix for #9254. Bugfix on 0.2.4.14-alpha. This is not actually a bug in the Tor code.
Diffstat (limited to 'src')
-rw-r--r--src/or/circuitlist.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 3dc362f50..daeaa37b1 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -1518,8 +1518,10 @@ static size_t
n_cells_in_circ_queues(const circuit_t *c)
{
size_t n = c->n_chan_cells.n;
- if (! CIRCUIT_IS_ORIGIN(c))
- n += TO_OR_CIRCUIT((circuit_t*)c)->p_chan_cells.n;
+ if (! CIRCUIT_IS_ORIGIN(c)) {
+ circuit_t *cc = (circuit_t *) c;
+ n += TO_OR_CIRCUIT(cc)->p_chan_cells.n;
+ }
return n;
}