[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-donau] branch master updated: [httpd] fix taler amount struct
From: |
gnunet |
Subject: |
[taler-donau] branch master updated: [httpd] fix taler amount struct |
Date: |
Fri, 12 Jan 2024 16:38:36 +0100 |
This is an automated email from the git hooks/post-receive script.
johannes-casaburi pushed a commit to branch master
in repository donau.
The following commit(s) were added to refs/heads/master by this push:
new 00ca05b [httpd] fix taler amount struct
00ca05b is described below
commit 00ca05be7f26579d35db284c30ee4f84f2ec0c62
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
AuthorDate: Fri Jan 12 16:37:42 2024 +0100
[httpd] fix taler amount struct
---
contrib/gana | 2 +-
src/donau/donau-httpd_post-charity.c | 12 ++++++------
src/include/donaudb_plugin.h | 16 ++++++++--------
3 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/contrib/gana b/contrib/gana
index 8368009..40f6cf1 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit 836800945d80db9c0160a10a84edc1a086339187
+Subproject commit 40f6cf1015231663064eda98aa1e403cddd7b970
diff --git a/src/donau/donau-httpd_post-charity.c
b/src/donau/donau-httpd_post-charity.c
index e4ebc65..9c141ca 100644
--- 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
index 7756369..0351b5c 100644
--- 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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-donau] branch master updated: [httpd] fix taler amount struct,
gnunet <=