aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_exchanges.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-21 18:35:39 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-21 18:35:39 +0200
commit0d27e60be0446209d5d2af89ad1160464500d2ff (patch)
treedfa759ba14776dfd90ad1bccf98124b3a694ba17 /src/backend/taler-merchant-httpd_exchanges.c
parent13eb40e3bcc935dc39a03d071f8ab2391c8c085e (diff)
make use of GNUNET_JSON_from_data_auto where possible
Diffstat (limited to 'src/backend/taler-merchant-httpd_exchanges.c')
-rw-r--r--src/backend/taler-merchant-httpd_exchanges.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_exchanges.c b/src/backend/taler-merchant-httpd_exchanges.c
index 9a292365..0501784a 100644
--- a/src/backend/taler-merchant-httpd_exchanges.c
+++ b/src/backend/taler-merchant-httpd_exchanges.c
@@ -534,9 +534,8 @@ TMH_EXCHANGES_init (const struct GNUNET_CONFIGURATION_Handle *cfg)
if (GNUNET_YES != exchange->trusted)
continue;
j_exchange = json_pack ("{s:s, s:o}",
- "url", exchange->uri,
- "master_pub", GNUNET_JSON_from_data (&exchange->master_pub,
- sizeof (struct TALER_MasterPublicKeyP)));
+ "url", exchange->uri,
+ "master_pub", GNUNET_JSON_from_data_auto (&exchange->master_pub));
json_array_append_new (trusted_exchanges,
j_exchange);
}