summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_recoup.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-30 17:24:16 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-30 17:24:18 +0200
commitcbb905a9aae891c6c3af5ead5709951c4f038a2a (patch)
treea4d2ef3818c58924329e9db8eb588ac07aec129c /src/exchange/taler-exchange-httpd_recoup.c
parent7e409c37ab6f339811441c8803109afb218d0854 (diff)
downloadexchange-cbb905a9aae891c6c3af5ead5709951c4f038a2a.tar.gz
exchange-cbb905a9aae891c6c3af5ead5709951c4f038a2a.tar.bz2
exchange-cbb905a9aae891c6c3af5ead5709951c4f038a2a.zip
-eliminate more json_pack format strings
Diffstat (limited to 'src/exchange/taler-exchange-httpd_recoup.c')
-rw-r--r--src/exchange/taler-exchange-httpd_recoup.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/exchange/taler-exchange-httpd_recoup.c b/src/exchange/taler-exchange-httpd_recoup.c
index 991b16e27..521b75627 100644
--- a/src/exchange/taler-exchange-httpd_recoup.c
+++ b/src/exchange/taler-exchange-httpd_recoup.c
@@ -490,20 +490,20 @@ verify_and_execute_recoup (struct MHD_Connection *connection,
}
/* Recoup succeeded, return result */
return (refreshed)
- ? TALER_MHD_reply_json_pack (connection,
+ ? TALER_MHD_REPLY_JSON_PACK (connection,
MHD_HTTP_OK,
- "{s:o, s:b}",
- "old_coin_pub",
- GNUNET_JSON_from_data_auto (
+ GNUNET_JSON_pack_data_auto (
+ "old_coin_pub",
&pc.target.old_coin_pub),
- "refreshed", 1)
- : TALER_MHD_reply_json_pack (connection,
+ GNUNET_JSON_pack_bool ("refreshed",
+ true))
+ : TALER_MHD_REPLY_JSON_PACK (connection,
MHD_HTTP_OK,
- "{s:o, s:b}",
- "reserve_pub",
- GNUNET_JSON_from_data_auto (
+ GNUNET_JSON_pack_data_auto (
+ "reserve_pub",
&pc.target.reserve_pub),
- "refreshed", 0);
+ GNUNET_JSON_pack_bool ("refreshed",
+ false));
}