diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-07-03 18:39:06 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-07-03 18:39:06 +0200 |
commit | d3772a834fa3df6802c170779c09d24cbb6fc1a6 (patch) | |
tree | 5dd340d54d36b0e0cda908a347b42a1cc5881f71 /src/lib/exchange_api_common.c | |
parent | 290268e9af65467ba8ffc82a196e2666c7796475 (diff) | |
download | exchange-d3772a834fa3df6802c170779c09d24cbb6fc1a6.tar.xz |
more API clean up
Diffstat (limited to 'src/lib/exchange_api_common.c')
-rw-r--r-- | src/lib/exchange_api_common.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c index 77a5cf816..7c86ec597 100644 --- a/src/lib/exchange_api_common.c +++ b/src/lib/exchange_api_common.c @@ -654,7 +654,7 @@ TALER_EXCHANGE_parse_reserve_history ( struct TALER_Amount *total_in, struct TALER_Amount *total_out, unsigned int history_length, - struct TALER_EXCHANGE_ReserveHistoryEntry *rhistory) + struct TALER_EXCHANGE_ReserveHistoryEntry rhistory[static history_length]) { const struct { @@ -753,8 +753,8 @@ TALER_EXCHANGE_parse_reserve_history ( void TALER_EXCHANGE_free_reserve_history ( - struct TALER_EXCHANGE_ReserveHistoryEntry *rhistory, - unsigned int len) + unsigned int len, + struct TALER_EXCHANGE_ReserveHistoryEntry rhistory[static len]) { for (unsigned int i = 0; i<len; i++) { @@ -2281,10 +2281,11 @@ fail: enum GNUNET_GenericReturnValue -TALER_EXCHANGE_parse_accounts (const struct TALER_MasterPublicKeyP *master_pub, - const json_t *accounts, - struct TALER_EXCHANGE_WireAccount was[], - unsigned int was_length) +TALER_EXCHANGE_parse_accounts ( + const struct TALER_MasterPublicKeyP *master_pub, + const json_t *accounts, + unsigned int was_length, + struct TALER_EXCHANGE_WireAccount was[static was_length]) { memset (was, 0, @@ -2370,8 +2371,9 @@ TALER_EXCHANGE_parse_accounts (const struct TALER_MasterPublicKeyP *master_pub, void -TALER_EXCHANGE_free_accounts (struct TALER_EXCHANGE_WireAccount *was, - unsigned int was_len) +TALER_EXCHANGE_free_accounts ( + unsigned int was_len, + struct TALER_EXCHANGE_WireAccount was[static was_len]) { for (unsigned int i = 0; i<was_len; i++) { |