aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-20 14:18:09 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-20 14:18:09 -0400
commit72e30f26ec291baba202b71e121c3211af2db371 (patch)
tree7f64d5178573980a22ca4126fc6797b77b40cbeb /src/or/rephist.c
parent6af352172d3dbf1571c8cb62cd0a618f4e2355d1 (diff)
downloadtor-72e30f26ec291baba202b71e121c3211af2db371.tar.gz
tor-72e30f26ec291baba202b71e121c3211af2db371.zip
Fix a pair of errors in bug23512
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 211480284a..20f9148f03 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -1211,7 +1211,7 @@ rep_hist_load_mtbf_data(time_t now)
/** Structure to track bandwidth use, and remember the maxima for a given
* time period.
*/
-typedef struct bw_array_t {
+struct bw_array_t {
/** Observation array: Total number of bytes transferred in each of the last
* NUM_SECS_ROLLING_MEASURE seconds. This is used as a circular array. */
uint64_t obs[NUM_SECS_ROLLING_MEASURE];
@@ -1238,7 +1238,7 @@ typedef struct bw_array_t {
/** Circular array of the total bandwidth usage for the last NUM_TOTALS
* periods */
uint64_t totals[NUM_TOTALS];
-} bw_array_t;
+};
/** Shift the current period of b forward by one. */
STATIC void
@@ -3297,4 +3297,3 @@ rep_hist_free_all(void)
tor_assert_nonfatal(rephist_total_alloc == 0);
tor_assert_nonfatal_once(rephist_total_num == 0);
}
-