diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-27 12:13:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-27 12:13:44 +0100 |
commit | 2a0bf277efba7c5c9de0f30ff23a27b4ce137c80 (patch) | |
tree | 86b0b0823595c6912edde837870e7021e70f4029 /src/stasis | |
parent | eaf487f323012aba8e7fb82a3ddb4a7f1d5363b7 (diff) | |
download | anastasis-2a0bf277efba7c5c9de0f30ff23a27b4ce137c80.tar.gz anastasis-2a0bf277efba7c5c9de0f30ff23a27b4ce137c80.tar.bz2 anastasis-2a0bf277efba7c5c9de0f30ff23a27b4ce137c80.zip |
-fix compiler warnings / adjust test to new DB schema
Diffstat (limited to 'src/stasis')
-rw-r--r-- | src/stasis/test_anastasis_db.c | 12 |
1 files changed, 7 insertions, 5 deletions
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 != |