From d3772a834fa3df6802c170779c09d24cbb6fc1a6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 3 Jul 2023 18:39:06 +0200 Subject: more API clean up --- src/lib/exchange_api_common.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/lib/exchange_api_common.c') diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c index 77a5cf81..7c86ec59 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