exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 72c298b52e392b14592719f45f057b7eff1e56c5
parent 51929fe759668388a36c99c9e4b1b44fcb2d55cb
Author: Sree Harsha Totakura <sreeharsha@totakura.in>
Date:   Thu,  5 Mar 2015 17:34:54 +0100

util: use const whenever applicable

Diffstat:
Msrc/include/taler_amount_lib.h | 4++--
Msrc/util/amount.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/include/taler_amount_lib.h b/src/include/taler_amount_lib.h @@ -99,7 +99,7 @@ TALER_string_to_amount (const char *str, * @return amount in network representation */ struct TALER_AmountNBO -TALER_amount_hton (struct TALER_Amount d); +TALER_amount_hton (const struct TALER_Amount d); /** @@ -109,7 +109,7 @@ TALER_amount_hton (struct TALER_Amount d); * @return amount in host representation */ struct TALER_Amount -TALER_amount_ntoh (struct TALER_AmountNBO dn); +TALER_amount_ntoh (const struct TALER_AmountNBO dn); /** diff --git a/src/util/amount.c b/src/util/amount.c @@ -139,7 +139,7 @@ TALER_string_to_amount (const char *str, * FIXME */ struct TALER_AmountNBO -TALER_amount_hton (struct TALER_Amount d) +TALER_amount_hton (const struct TALER_Amount d) { struct TALER_AmountNBO dn; dn.value = htonl (d.value); @@ -154,7 +154,7 @@ TALER_amount_hton (struct TALER_Amount d) * FIXME */ struct TALER_Amount -TALER_amount_ntoh (struct TALER_AmountNBO dn) +TALER_amount_ntoh (const struct TALER_AmountNBO dn) { struct TALER_Amount d; d.value = ntohl (dn.value);