aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-07-28 11:24:03 -0400
committerNick Mathewson <nickm@torproject.org>2016-07-28 11:24:03 -0400
commitdffc6910b11d88544a93c3e3e80c1155f998f561 (patch)
tree61330313d05c9d055d0178d694138465da1c5748 /src/or/rephist.c
parent9fe6fea1cceb39fc415ad813020bbd863121e0c9 (diff)
downloadtor-dffc6910b11d88544a93c3e3e80c1155f998f561.tar.gz
tor-dffc6910b11d88544a93c3e3e80c1155f998f561.zip
Three more -Wshadow fixes.
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 0eab5e099f..6a54904746 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -2374,7 +2374,7 @@ rep_hist_reset_buffer_stats(time_t now)
if (!circuits_for_buffer_stats)
circuits_for_buffer_stats = smartlist_new();
SMARTLIST_FOREACH(circuits_for_buffer_stats, circ_buffer_stats_t *,
- stat, tor_free(stat));
+ stats, tor_free(stats));
smartlist_clear(circuits_for_buffer_stats);
start_of_buffer_stats_interval = now;
}
@@ -2415,15 +2415,15 @@ rep_hist_format_buffer_stats(time_t now)
buffer_stats_compare_entries_);
i = 0;
SMARTLIST_FOREACH_BEGIN(circuits_for_buffer_stats,
- circ_buffer_stats_t *, stat)
+ circ_buffer_stats_t *, stats)
{
int share = i++ * SHARES / number_of_circuits;
- processed_cells[share] += stat->processed_cells;
- queued_cells[share] += stat->mean_num_cells_in_queue;
- time_in_queue[share] += stat->mean_time_cells_in_queue;
+ processed_cells[share] += stats->processed_cells;
+ queued_cells[share] += stats->mean_num_cells_in_queue;
+ time_in_queue[share] += stats->mean_time_cells_in_queue;
circs_in_share[share]++;
}
- SMARTLIST_FOREACH_END(stat);
+ SMARTLIST_FOREACH_END(stats);
}
/* Write deciles to strings. */