diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-10-10 21:25:52 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-10-10 21:25:52 -0400 |
commit | bd28322d3815a03ca04beb6d00052d613dbe226f (patch) | |
tree | e9ce3960612297ccd9b5eaad1bf0c6f1064db9de /src/or/circuitlist.c | |
parent | cf994f7ad758af01d7cb9318bcf5be7e36c5c71b (diff) | |
download | tor-bd28322d3815a03ca04beb6d00052d613dbe226f.tar.gz tor-bd28322d3815a03ca04beb6d00052d613dbe226f.zip |
Remove variables; fix gcc 4.7 warnings
My GCC warns when variables are assigned to but never used. There
were a few like that in the 6816/6465 branches.
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 51406001a7..b73822635d 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -100,18 +100,16 @@ circuit_set_circid_chan_helper(circuit_t *circ, int direction, chan_circid_circuit_map_t *found; channel_t *old_chan, **chan_ptr; circid_t old_id, *circid_ptr; - int was_active, make_active, attached = 0; + int make_active, attached = 0; if (direction == CELL_DIRECTION_OUT) { chan_ptr = &circ->n_chan; circid_ptr = &circ->n_circ_id; - was_active = circ->next_active_on_n_chan != NULL; make_active = circ->n_chan_cells.n > 0; } else { or_circuit_t *c = TO_OR_CIRCUIT(circ); chan_ptr = &c->p_chan; circid_ptr = &c->p_circ_id; - was_active = c->next_active_on_p_chan != NULL; make_active = c->p_chan_cells.n > 0; } old_chan = *chan_ptr; |