From 306a08a71c0f1e8e3e549fbb72c0eecdb3ec9a70 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 23 Jul 2021 13:02:04 +0200 Subject: -rename TALER_amount_get_zero to TALER_amount_set_zero --- src/util/amount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util') diff --git a/src/util/amount.c b/src/util/amount.c index 9012788f6..01f2a2313 100644 --- a/src/util/amount.c +++ b/src/util/amount.c @@ -214,7 +214,7 @@ TALER_amount_ntoh (struct TALER_Amount *res, enum GNUNET_GenericReturnValue -TALER_amount_get_zero (const char *cur, +TALER_amount_set_zero (const char *cur, struct TALER_Amount *amount) { size_t slen; @@ -371,7 +371,7 @@ TALER_amount_subtract (struct TALER_Amount *diff, return TALER_AAR_INVALID_NEGATIVE_RESULT; } GNUNET_assert (GNUNET_OK == - TALER_amount_get_zero (n1.currency, + TALER_amount_set_zero (n1.currency, diff)); GNUNET_assert (n1.fraction >= n2.fraction); diff->fraction = n1.fraction - n2.fraction; @@ -414,7 +414,7 @@ TALER_amount_add (struct TALER_Amount *sum, } GNUNET_assert (GNUNET_OK == - TALER_amount_get_zero (a1->currency, + TALER_amount_set_zero (a1->currency, &res)); res.value = n1.value + n2.value; if (res.value < n1.value) -- cgit v1.2.3