gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[exchange] branch master updated: -fix more JSON packers


From: gnunet
Subject: [exchange] branch master updated: -fix more JSON packers
Date: Tue, 14 Jan 2025 23:32:06 +0100

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 a04da78d3 -fix more JSON packers
a04da78d3 is described below

commit a04da78d3ec223e9785f7a6e82367f0cd41bce1e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Jan 14 23:31:59 2025 +0100

    -fix more JSON packers
---
 src/lib/exchange_api_age_withdraw.c        | 4 +---
 src/lib/exchange_api_age_withdraw_reveal.c | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/lib/exchange_api_age_withdraw.c 
b/src/lib/exchange_api_age_withdraw.c
index cfdda6bca..7c05ba5c0 100644
--- a/src/lib/exchange_api_age_withdraw.c
+++ b/src/lib/exchange_api_age_withdraw.c
@@ -567,9 +567,7 @@ perform_protocol (
       /* The mask must be the same for all coins */
       FAIL_IF (awbh->age_mask.bits != denom_pub->key.age_mask.bits);
 
-      jdenom = GNUNET_JSON_PACK (
-        GNUNET_JSON_pack_data_auto (NULL,
-                                    denom_h));
+      jdenom = GNUNET_JSON_from_data_auto (denom_h);
       FAIL_IF (NULL == jdenom);
       FAIL_IF (0 > json_array_append_new (j_denoms,
                                           jdenom));
diff --git a/src/lib/exchange_api_age_withdraw_reveal.c 
b/src/lib/exchange_api_age_withdraw_reveal.c
index 3cb20739b..02a88202a 100644
--- a/src/lib/exchange_api_age_withdraw_reveal.c
+++ b/src/lib/exchange_api_age_withdraw_reveal.c
@@ -388,9 +388,7 @@ perform_protocol (
       if (awrh->noreveal_index == k)
         continue;
 
-      j_sec = GNUNET_JSON_PACK (
-        GNUNET_JSON_pack_data_auto (NULL, secret));
-
+      j_sec = GNUNET_JSON_from_data_auto (secret);
       FAIL_IF (NULL == j_sec);
       FAIL_IF (0 < json_array_append_new (j_secrets,
                                           j_sec));

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]