util: use const whenever applicable
This commit is contained in:
parent
a3e7b3af82
commit
c2ee5efa50
@ -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);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user