aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_service.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-24 15:38:16 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-24 15:38:16 -0400
commitdb95a6e17129b51e0409dbcad1707367f9388173 (patch)
treed33537ec923ff3458d88d36601d2081cdbed5ad1 /src/test/test_hs_service.c
parent960a09689c5152281add1980f1768295bf51b0be (diff)
downloadtor-db95a6e17129b51e0409dbcad1707367f9388173.tar.gz
tor-db95a6e17129b51e0409dbcad1707367f9388173.zip
Fix implicit conversion warnings in the period_num tests
Diffstat (limited to 'src/test/test_hs_service.c')
-rw-r--r--src/test/test_hs_service.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index 8207ddc160..fcfb3b992d 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -203,7 +203,7 @@ static void
test_time_period(void *arg)
{
(void) arg;
- unsigned int tn;
+ uint64_t tn;
int retval;
time_t fake_time;
@@ -214,22 +214,22 @@ test_time_period(void *arg)
/* Check that the time period number is right */
tn = get_time_period_num(fake_time);
- tt_int_op(tn, ==, 16903);
+ tt_u64_op(tn, ==, 16903);
/* Increase current time to 11:59:59 UTC and check that the time period
number is still the same */
fake_time += 3599;
tn = get_time_period_num(fake_time);
- tt_int_op(tn, ==, 16903);
+ tt_u64_op(tn, ==, 16903);
/* Now take time to 12:00:00 UTC and check that the time period rotated */
fake_time += 1;
tn = get_time_period_num(fake_time);
- tt_int_op(tn, ==, 16904);
+ tt_u64_op(tn, ==, 16904);
/* Now also check our hs_get_next_time_period_num() function */
tn = hs_get_next_time_period_num(fake_time);
- tt_int_op(tn, ==, 16905);
+ tt_u64_op(tn, ==, 16905);
done:
;