aboutsummaryrefslogtreecommitdiff
path: root/src/util/amount.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <sreeharsha@totakura.in>2015-03-05 17:34:54 +0100
committerSree Harsha Totakura <sreeharsha@totakura.in>2015-03-06 10:32:02 +0100
commit72c298b52e392b14592719f45f057b7eff1e56c5 (patch)
treea246391a31b2da2b659ed157af1f308c7bb8f6d4 /src/util/amount.c
parent51929fe759668388a36c99c9e4b1b44fcb2d55cb (diff)
util: use const whenever applicable
Diffstat (limited to 'src/util/amount.c')
-rw-r--r--src/util/amount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/amount.c b/src/util/amount.c
index cc0cdd6e3..9bdc0fd93 100644
--- 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);