aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-08-15 14:22:32 +0200
committerSebastian Hahn <sebastian@torproject.org>2010-08-16 00:45:32 +0200
commit4c49d3c27eb664561f1cc953f7c6fa441ac7cedc (patch)
tree03424019eeb6f2528b04b242be5cb8352f5adb02 /src/test/test.c
parent70f0ba1495dce3b7c912354e2690fa9588b4e5b5 (diff)
downloadtor-4c49d3c27eb664561f1cc953f7c6fa441ac7cedc.tar.gz
tor-4c49d3c27eb664561f1cc953f7c6fa441ac7cedc.zip
Refactor circuit_build_times_parse_state
Remove the msg parameter to pass an error message out. This wasn't needed and made it harder to detect a memory leak.
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test.c b/src/test/test.c
index 9948ecf992..6e5abcb97d 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -478,7 +478,6 @@ test_circuit_timeout(void)
circuit_build_times_t final;
double timeout1, timeout2;
or_state_t state;
- char *msg;
int i, runs;
double close_ms;
circuit_build_times_init(&initial);
@@ -518,7 +517,7 @@ test_circuit_timeout(void)
test_assert(estimate.total_build_times <= CBT_NCIRCUITS_TO_OBSERVE);
circuit_build_times_update_state(&estimate, &state);
- test_assert(circuit_build_times_parse_state(&final, &state, &msg) == 0);
+ test_assert(circuit_build_times_parse_state(&final, &state) == 0);
circuit_build_times_update_alpha(&final);
timeout2 = circuit_build_times_calculate_timeout(&final,