donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 00ca05be7f26579d35db284c30ee4f84f2ec0c62
parent 3de06e7344521e2a238eff5cc99554813b13515b
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date:   Fri, 12 Jan 2024 16:37:42 +0100

[httpd] fix taler amount struct

Diffstat:
Msrc/donau/donau-httpd_post-charity.c | 12++++++------
Msrc/include/donaudb_plugin.h | 16++++++++--------
2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/donau/donau-httpd_post-charity.c b/src/donau/donau-httpd_post-charity.c @@ -41,8 +41,8 @@ struct InsertCharityContext struct DONAU_CharityPublicKeyP charity_pub; const char *charity_name; const char *charity_url; - struct TALER_Amount *max_per_year; - struct TALER_Amount *receipts_to_date; + struct TALER_Amount max_per_year; + struct TALER_Amount receipts_to_date; uint64_t current_year; }; @@ -75,8 +75,8 @@ insert_charity (void *cls, &icc->charity_pub, icc->charity_name, icc->charity_url, - icc->max_per_year, - icc->receipts_to_date, + &icc->max_per_year, + &icc->receipts_to_date, icc->current_year); if (qs <= 0) { @@ -112,10 +112,10 @@ DH_handler_charity_post (struct DH_RequestContext *rc, &icc.charity_url), TALER_JSON_spec_amount ("max_per_year", DH_currency, - icc.max_per_year), + &icc.max_per_year), TALER_JSON_spec_amount ("receipts_to_date", DH_currency, - icc.receipts_to_date), + &icc.receipts_to_date), GNUNET_JSON_spec_uint64 ("current_year", &icc.current_year), GNUNET_JSON_spec_end () diff --git a/src/include/donaudb_plugin.h b/src/include/donaudb_plugin.h @@ -397,14 +397,14 @@ struct DONAUDB_Plugin struct TALER_Amount *receipts_to_date, uint64_t current_year); - /** - * Get keys. - * - * @param cls closure - * @param cb callback to invoke on each match - * @param cb_cls closure for @a cb - * @return database transaction status - */ + /** + * Get keys. + * + * @param cls closure + * @param cb callback to invoke on each match + * @param cb_cls closure for @a cb + * @return database transaction status + */ enum GNUNET_DB_QueryStatus (*get_keys)( void *cls,