commit e89bd765d1b37cf72abce161d174fca7325a0679
parent d1b548ec0153f10e66a2479360e3320725b1ed55
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date: Fri, 12 Jan 2024 17:06:15 +0100
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat:
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,