summaryrefslogtreecommitdiff
path: root/src/test/test_hs_intropoint.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-04-17 16:23:58 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-04-17 16:23:58 +0300
commita3ce303432f35a6f06f63f0679b9bb577f88dc3c (patch)
treefa82cfaacfc0e653eb37a9e96c82023632359106 /src/test/test_hs_intropoint.c
parentb081a7ed21ae729f6e195715e130edaca3e0b7fe (diff)
downloadtor-a3ce303432f35a6f06f63f0679b9bb577f88dc3c.tar.gz
tor-a3ce303432f35a6f06f63f0679b9bb577f88dc3c.zip
prop224 tests: Don't use tt_size_op to compare ssize_t.
Addresses coverity CID 1405129.
Diffstat (limited to 'src/test/test_hs_intropoint.c')
-rw-r--r--src/test/test_hs_intropoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_hs_intropoint.c b/src/test/test_hs_intropoint.c
index 7bcd5685c3..ef5cb46567 100644
--- a/src/test/test_hs_intropoint.c
+++ b/src/test/test_hs_intropoint.c
@@ -777,11 +777,11 @@ test_received_introduce1_handling(void *arg)
{
cell = helper_create_introduce1_cell();
ssize_t request_len = trn_cell_introduce1_encoded_len(cell);
- tt_size_op(request_len, OP_GT, 0);
+ tt_int_op((int)request_len, OP_GT, 0);
request = tor_malloc_zero(request_len);
ssize_t encoded_len =
trn_cell_introduce1_encode(request, request_len, cell);
- tt_size_op(encoded_len, OP_GT, 0);
+ tt_int_op((int)encoded_len, OP_GT, 0);
circ = helper_create_intro_circuit();
or_circuit_t *service_circ = helper_create_intro_circuit();
@@ -812,7 +812,7 @@ test_received_introduce1_handling(void *arg)
request = tor_malloc_zero(request_len + 256);
ssize_t encoded_len =
trn_cell_introduce1_encode(request, request_len, cell);
- tt_size_op(encoded_len, OP_GT, 0);
+ tt_int_op((int)encoded_len, OP_GT, 0);
circ = helper_create_intro_circuit();
or_circuit_t *service_circ = helper_create_intro_circuit();