From 2a0bf277efba7c5c9de0f30ff23a27b4ce137c80 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 27 Feb 2022 12:13:44 +0100 Subject: -fix compiler warnings / adjust test to new DB schema --- src/stasis/test_anastasis_db.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/stasis/test_anastasis_db.c b/src/stasis/test_anastasis_db.c index 0b696a4..5ad29bc 100644 --- a/src/stasis/test_anastasis_db.c +++ b/src/stasis/test_anastasis_db.c @@ -151,7 +151,7 @@ run (void *cls) &paymentSecretP, &amount)); { - struct GNUNET_TIME_Absolute res_time; + struct GNUNET_TIME_Timestamp res_time; FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->increment_lifetime (plugin->cls, @@ -192,11 +192,13 @@ run (void *cls) &recoveryDataHash, recovery_data, strlen (recovery_data), + "meta-data", + strlen ("meta-data"), &paymentSecretP, &docVersion)); { uint32_t vrs; - struct GNUNET_TIME_Absolute exp; + struct GNUNET_TIME_Timestamp exp; FAILIF (ANASTASIS_DB_ACCOUNT_STATUS_VALID_HASH_RETURNED != plugin->lookup_account (plugin->cls, @@ -240,7 +242,7 @@ run (void *cls) GNUNET_free (res_recovery_data); { - struct GNUNET_TIME_Absolute rt; + struct GNUNET_TIME_Timestamp rt; FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != plugin->create_challenge_code (plugin->cls, @@ -250,10 +252,10 @@ run (void *cls) 3, /* retry counter */ &rt, &challenge_code)); - FAILIF (0 != rt.abs_value_us); + FAILIF (! GNUNET_TIME_absolute_is_zero (rt.abs_time)); } { - struct GNUNET_TIME_Absolute rt; + struct GNUNET_TIME_Timestamp rt; uint64_t c2; FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != -- cgit v1.2.3