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/circuitmux_ewma.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/circuitmux_ewma.c')
-rw-r--r-- | src/or/circuitmux_ewma.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/circuitmux_ewma.c b/src/or/circuitmux_ewma.c index 82ad5c7413..c280bf4ab0 100644 --- a/src/or/circuitmux_ewma.c +++ b/src/or/circuitmux_ewma.c @@ -265,7 +265,6 @@ ewma_alloc_circ_data(circuitmux_t *cmux, cell_direction_t direction, unsigned int cell_count) { - ewma_policy_data_t *pol = NULL; ewma_policy_circ_data_t *cdata = NULL; tor_assert(cmux); @@ -276,8 +275,6 @@ ewma_alloc_circ_data(circuitmux_t *cmux, /* Shut the compiler up */ tor_assert(cell_count == cell_count); - pol = TO_EWMA_POL_DATA(pol_data); - cdata = tor_malloc_zero(sizeof(*cdata)); cdata->_base.magic = EWMA_POL_CIRC_DATA_MAGIC; cdata->circ = circ; @@ -309,13 +306,11 @@ ewma_free_circ_data(circuitmux_t *cmux, circuitmux_policy_circ_data_t *pol_circ_data) { - ewma_policy_data_t *pol = NULL; ewma_policy_circ_data_t *cdata = NULL; tor_assert(cmux); tor_assert(circ); tor_assert(pol_data); - pol = TO_EWMA_POL_DATA(pol_data); if (!pol_circ_data) return; |