diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-17 17:47:53 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-17 17:47:53 +0100 |
commit | 86f2d65daf6c2f579ae2ca3cefe36195c2631f2d (patch) | |
tree | 65ee3e98d29f2114f430061f4bfdad10a7143bf7 /src/lib/exchange_api_common.c | |
parent | c17909d8209e18829102c7de2789909722e1af3b (diff) |
style, indentation and type fixes for lib/
Diffstat (limited to 'src/lib/exchange_api_common.c')
-rw-r--r-- | src/lib/exchange_api_common.c | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c index fd3927f86..70d1432ff 100644 --- a/src/lib/exchange_api_common.c +++ b/src/lib/exchange_api_common.c @@ -43,15 +43,14 @@ * #GNUNET_SYSERR if there was a protocol violation in @a history */ int -TALER_EXCHANGE_parse_reserve_history (struct TALER_EXCHANGE_Handle *exchange, - const json_t *history, - const struct - TALER_ReservePublicKeyP *reserve_pub, - const char *currency, - struct TALER_Amount *balance, - unsigned int history_length, - struct TALER_EXCHANGE_ReserveHistory * - rhistory) +TALER_EXCHANGE_parse_reserve_history ( + struct TALER_EXCHANGE_Handle *exchange, + const json_t *history, + const struct TALER_ReservePublicKeyP *reserve_pub, + const char *currency, + struct TALER_Amount *balance, + unsigned int history_length, + struct TALER_EXCHANGE_ReserveHistory *rhistory) { struct GNUNET_HashCode uuid[history_length]; unsigned int uuid_off; @@ -417,9 +416,9 @@ TALER_EXCHANGE_parse_reserve_history (struct TALER_EXCHANGE_Handle *exchange, * @param len number of entries in @a rhistory */ void -TALER_EXCHANGE_free_reserve_history (struct - TALER_EXCHANGE_ReserveHistory *rhistory, - unsigned int len) +TALER_EXCHANGE_free_reserve_history ( + struct TALER_EXCHANGE_ReserveHistory *rhistory, + unsigned int len) { for (unsigned int i = 0; i<len; i++) { @@ -452,13 +451,12 @@ TALER_EXCHANGE_free_reserve_history (struct * @return #GNUNET_OK if @a history is valid, #GNUNET_SYSERR if not */ int -TALER_EXCHANGE_verify_coin_history (const struct - TALER_EXCHANGE_DenomPublicKey *dk, - const char *currency, - const struct - TALER_CoinSpendPublicKeyP *coin_pub, - json_t *history, - struct TALER_Amount *total) +TALER_EXCHANGE_verify_coin_history ( + const struct TALER_EXCHANGE_DenomPublicKey *dk, + const char *currency, + const struct TALER_CoinSpendPublicKeyP *coin_pub, + json_t *history, + struct TALER_Amount *total) { size_t len; struct TALER_Amount rtotal; @@ -797,11 +795,9 @@ TALER_EXCHANGE_verify_coin_history (const struct * @return NULL on error (@a exchange_pub not known) */ const struct TALER_EXCHANGE_SigningPublicKey * -TALER_EXCHANGE_get_signing_key_info (const struct - TALER_EXCHANGE_Keys *keys, - const struct - TALER_ExchangePublicKeyP * - exchange_pub) +TALER_EXCHANGE_get_signing_key_info ( + const struct TALER_EXCHANGE_Keys *keys, + const struct TALER_ExchangePublicKeyP *exchange_pub) { for (unsigned int i = 0; i<keys->num_sign_keys; i++) { |