summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exchange_api_common.c8
-rw-r--r--src/lib/exchange_api_refresh_common.c2
-rw-r--r--src/lib/exchange_api_transfers_get.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c
index 82604e0b1..2ad55e6c3 100644
--- a/src/lib/exchange_api_common.c
+++ b/src/lib/exchange_api_common.c
@@ -58,10 +58,10 @@ TALER_EXCHANGE_parse_reserve_history (
struct TALER_Amount total_out;
GNUNET_assert (GNUNET_OK ==
- TALER_amount_get_zero (currency,
+ TALER_amount_set_zero (currency,
&total_in));
GNUNET_assert (GNUNET_OK ==
- TALER_amount_get_zero (currency,
+ TALER_amount_set_zero (currency,
&total_out));
uuid_off = 0;
for (unsigned int off = 0; off<history_length; off++)
@@ -470,10 +470,10 @@ TALER_EXCHANGE_verify_coin_history (
return GNUNET_SYSERR;
}
GNUNET_assert (GNUNET_OK ==
- TALER_amount_get_zero (currency,
+ TALER_amount_set_zero (currency,
total));
GNUNET_assert (GNUNET_OK ==
- TALER_amount_get_zero (currency,
+ TALER_amount_set_zero (currency,
&rtotal));
for (size_t off = 0; off<len; off++)
{
diff --git a/src/lib/exchange_api_refresh_common.c b/src/lib/exchange_api_refresh_common.c
index 8ac0bdfc9..00d01e4e5 100644
--- a/src/lib/exchange_api_refresh_common.c
+++ b/src/lib/exchange_api_refresh_common.c
@@ -521,7 +521,7 @@ TALER_EXCHANGE_refresh_prepare (
md.melted_coin.expire_deposit
= melt_pk->expire_deposit;
GNUNET_assert (GNUNET_OK ==
- TALER_amount_get_zero (melt_amount->currency,
+ TALER_amount_set_zero (melt_amount->currency,
&total));
md.melted_coin.pub_key.rsa_public_key
= GNUNET_CRYPTO_rsa_public_key_dup (melt_pk->key.rsa_public_key);
diff --git a/src/lib/exchange_api_transfers_get.c b/src/lib/exchange_api_transfers_get.c
index 771a4c0eb..a3a82368c 100644
--- a/src/lib/exchange_api_transfers_get.c
+++ b/src/lib/exchange_api_transfers_get.c
@@ -113,7 +113,7 @@ check_transfers_get_response_ok (
return GNUNET_SYSERR;
}
if (GNUNET_OK !=
- TALER_amount_get_zero (td.total_amount.currency,
+ TALER_amount_set_zero (td.total_amount.currency,
&total_expected))
{
GNUNET_break_op (0);