summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-07 16:31:33 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-07 16:31:33 +0200
commit3cdf7dfaaac3595b07931b385b3ce4aa8e67ebed (patch)
tree023449d0bfaa007ed8dddce603f8ce7d08446d53 /src/lib/exchange_api_handle.c
parentd1b57be30409b44a7c27415fd680d3d437f61065 (diff)
downloadexchange-3cdf7dfaaac3595b07931b385b3ce4aa8e67ebed.tar.gz
exchange-3cdf7dfaaac3595b07931b385b3ce4aa8e67ebed.tar.bz2
exchange-3cdf7dfaaac3595b07931b385b3ce4aa8e67ebed.zip
-use new GNUNET_TIME_relative_is_zero API
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r--src/lib/exchange_api_handle.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 61523972..32234ee6 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -1079,8 +1079,9 @@ TALER_EXCHANGE_check_keys_current (struct TALER_EXCHANGE_Handle *exchange,
exchange->state = MHS_INIT;
}
if ( (! force_download) &&
- (0 < GNUNET_TIME_absolute_get_remaining (
- exchange->key_data_expiration).rel_value_us) )
+ (! GNUNET_TIME_relative_is_zero (
+ GNUNET_TIME_absolute_get_remaining (
+ exchange->key_data_expiration)) ) )
return exchange->key_data_expiration;
if (NULL == exchange->retry_task)
exchange->retry_task = GNUNET_SCHEDULER_add_now (&request_keys,