diff options
author | David Goulet <dgoulet@torproject.org> | 2017-08-11 14:59:28 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-08-11 14:59:28 -0400 |
commit | 598bf986b60cbbb447aa288eb8c05dcaca282d0f (patch) | |
tree | 166a8c3c7218d7896de6b1ff18b1393f1233fb75 /src | |
parent | 9df4261407d620d05901a5c4e93aa963f89ab185 (diff) | |
download | tor-598bf986b60cbbb447aa288eb8c05dcaca282d0f.tar.gz tor-598bf986b60cbbb447aa288eb8c05dcaca282d0f.zip |
test: Fix typing issues found by clang
Partially fix #23224.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_hs_service.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c index 60efca15f8..c0dd9fe251 100644 --- a/src/test/test_hs_service.c +++ b/src/test/test_hs_service.c @@ -1030,8 +1030,8 @@ test_build_update_descriptors(void *arg) { int ret; time_t now = time(NULL); - time_t period_num = hs_get_time_period_num(now); - time_t next_period_num = hs_get_next_time_period_num(now); + uint64_t period_num = hs_get_time_period_num(now); + uint64_t next_period_num = hs_get_next_time_period_num(now); node_t *node; hs_service_t *service; hs_service_intro_point_t *ip_cur, *ip_next; @@ -1287,13 +1287,13 @@ test_revision_counter_state(void *arg) &desc_one->blinded_kp.pubkey, &service_found); tt_int_op(service_found, OP_EQ, 1); - tt_int_op(cached_rev_counter, OP_EQ, 42); + tt_u64_op(cached_rev_counter, OP_EQ, 42); cached_rev_counter =check_state_line_for_service_rev_counter(state_line_two, &desc_two->blinded_kp.pubkey, &service_found); tt_int_op(service_found, OP_EQ, 1); - tt_int_op(cached_rev_counter, OP_EQ, 240); + tt_u64_op(cached_rev_counter, OP_EQ, 240); done: tor_free(state_line_one); |