From fde9dc80f6e6a5fe4c5856b2ed78e6c024528c43 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 31 Jul 2021 21:40:48 +0200 Subject: -more json_pack cleaning --- src/auditor/taler-auditor-httpd.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/auditor/taler-auditor-httpd.c') diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c index d68ec7593..1824167fe 100644 --- a/src/auditor/taler-auditor-httpd.c +++ b/src/auditor/taler-auditor-httpd.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014-2020 Taler Systems SA + Copyright (C) 2014-2021 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software @@ -323,11 +323,13 @@ handle_version (struct TAH_RequestHandler *rh, (void) connection_cls; if (NULL == ver) { - ver = json_pack ("{s:s, s:s, s:o}", - "version", AUDITOR_PROTOCOL_VERSION, - "currency", TAH_currency, - "auditor_public_key", GNUNET_JSON_from_data_auto ( - &auditor_pub)); + ver = GNUNET_JSON_PACK ( + GNUNET_JSON_pack_string ("version", + AUDITOR_PROTOCOL_VERSION), + GNUNET_JSON_pack_string ("currency", + TAH_currency), + GNUNET_JSON_pack_data_auto ("auditor_public_key", + &auditor_pub)); } if (NULL == ver) { -- cgit v1.2.3