diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-23 13:02:04 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-23 13:02:04 +0200 |
commit | 306a08a71c0f1e8e3e549fbb72c0eecdb3ec9a70 (patch) | |
tree | cb870eb6b35b952eb2b015a7ef63010b73552d2d /src/util/amount.c | |
parent | 23e084718897f948d9256b898fc3a2a6ff582341 (diff) | |
download | exchange-306a08a71c0f1e8e3e549fbb72c0eecdb3ec9a70.tar.xz |
-rename TALER_amount_get_zero to TALER_amount_set_zero
Diffstat (limited to 'src/util/amount.c')
-rw-r--r-- | src/util/amount.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |