[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: -fix amount packer
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: -fix amount packer |
Date: |
Wed, 28 Jul 2021 09:46:03 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new b9e4431a -fix amount packer
b9e4431a is described below
commit b9e4431ae6d6075bc0af8ab3bad7b976d831c8f0
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Wed Jul 28 09:45:33 2021 +0200
-fix amount packer
---
src/json/json_pack.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/json/json_pack.c b/src/json/json_pack.c
index 836f0391..7a5d22ee 100644
--- a/src/json/json_pack.c
+++ b/src/json/json_pack.c
@@ -88,12 +88,12 @@ struct GNUNET_JSON_PackSpec
TALER_JSON_pack_amount (const char *name,
const struct TALER_Amount *amount)
{
- json_t *json;
+ struct GNUNET_JSON_PackSpec ps = {
+ .field_name = name,
+ .object = TALER_JSON_from_amount (amount)
+ };
- json = TALER_JSON_from_amount (amount);
- GNUNET_assert (NULL != json);
- return GNUNET_JSON_pack_object_steal (name,
- json);
+ return ps;
}
@@ -101,12 +101,12 @@ struct GNUNET_JSON_PackSpec
TALER_JSON_pack_amount_nbo (const char *name,
const struct TALER_AmountNBO *amount)
{
- json_t *json;
+ struct GNUNET_JSON_PackSpec ps = {
+ .field_name = name,
+ .object = TALER_JSON_from_amount_nbo (amount)
+ };
- json = TALER_JSON_from_amount_nbo (amount);
- GNUNET_assert (NULL != json);
- return GNUNET_JSON_pack_object_steal (name,
- json);
+ return ps;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-exchange] branch master updated: -fix amount packer,
gnunet <=