aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_circuitlist.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-01-18 12:01:49 +0200
committerDavid Goulet <dgoulet@torproject.org>2017-04-07 09:11:09 -0400
commit037ce360bd0a7b0db1d6b6e441c90b1773b4cb06 (patch)
tree4a63e133b509033e90cd8d6f2cdd1111fd2dc0f1 /src/test/test_circuitlist.c
parent489ef6b38ba66f59bb6562a4702c0500478a7495 (diff)
downloadtor-037ce360bd0a7b0db1d6b6e441c90b1773b4cb06.tar.gz
tor-037ce360bd0a7b0db1d6b6e441c90b1773b4cb06.zip
hs: Refactor circuitmap to use circuit_t instead of or_circuit_t.
Diffstat (limited to 'src/test/test_circuitlist.c')
-rw-r--r--src/test/test_circuitlist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test_circuitlist.c b/src/test/test_circuitlist.c
index 61d3b43059..ed18cbfa76 100644
--- a/src/test/test_circuitlist.c
+++ b/src/test/test_circuitlist.c
@@ -255,13 +255,13 @@ test_rend_token_maps(void *arg)
tt_ptr_op(c4, OP_EQ, hs_circuitmap_get_intro_circ_v2(tok3));
- tt_ptr_op(c3->hs_token, OP_EQ, NULL);
- tt_ptr_op(c4->hs_token, OP_NE, NULL);
- tt_mem_op(c4->hs_token->token, OP_EQ, tok3, REND_TOKEN_LEN);
+ tt_ptr_op(TO_CIRCUIT(c3)->hs_token, OP_EQ, NULL);
+ tt_ptr_op(TO_CIRCUIT(c4)->hs_token, OP_NE, NULL);
+ tt_mem_op(TO_CIRCUIT(c4)->hs_token->token, OP_EQ, tok3, REND_TOKEN_LEN);
/* Now clear c4's cookie. */
- hs_circuitmap_remove_circuit(c4);
- tt_ptr_op(c4->hs_token, OP_EQ, NULL);
+ hs_circuitmap_remove_circuit(TO_CIRCUIT(c4));
+ tt_ptr_op(TO_CIRCUIT(c4)->hs_token, OP_EQ, NULL);
tt_ptr_op(NULL, OP_EQ, hs_circuitmap_get_intro_circ_v2(tok3));
done: