diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-16 10:57:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-16 10:57:00 -0400 |
commit | ef9a0d204838768055194bd47acdb0074c2f13cb (patch) | |
tree | b4536c7f79495fca681ba1ff7fe610e27f8695f0 /src/or/circuitstats.c | |
parent | 0bd220adcb82670893c85b1cc24d64e615855b4f (diff) | |
download | tor-ef9a0d204838768055194bd47acdb0074c2f13cb.tar.gz tor-ef9a0d204838768055194bd47acdb0074c2f13cb.zip |
Add script to detect and remove unCish malloc-then-cast pattern
Also, apply it.
Diffstat (limited to 'src/or/circuitstats.c')
-rw-r--r-- | src/or/circuitstats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitstats.c b/src/or/circuitstats.c index 88a1f9b46c..c24259c22c 100644 --- a/src/or/circuitstats.c +++ b/src/or/circuitstats.c @@ -691,7 +691,7 @@ circuit_build_times_get_xm(circuit_build_times_t *cbt) if (cbt->total_build_times < CBT_NCIRCUITS_TO_OBSERVE) num_modes = 1; - nth_max_bin = (build_time_t*)tor_calloc(num_modes, sizeof(build_time_t)); + nth_max_bin = tor_calloc(num_modes, sizeof(build_time_t)); /* Determine the N most common build times */ for (i = 0; i < nbins; i++) { |