diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-21 18:36:12 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-21 18:36:12 +0200 |
commit | 9160245167ded9b2b7c11716dfa1a1e8887187f4 (patch) | |
tree | 64720ebc3b69f84055f25d8a7f309b19b0ebd52a /src/exchange-lib/exchange_api_reserve.c | |
parent | 922175d3082b138f4973fe11d81327806e68021d (diff) |
make use of GNUNET_JSON_from_data_auto where possible
Diffstat (limited to 'src/exchange-lib/exchange_api_reserve.c')
-rw-r--r-- | src/exchange-lib/exchange_api_reserve.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/exchange-lib/exchange_api_reserve.c b/src/exchange-lib/exchange_api_reserve.c index 056d2f085..56cc3dc54 100644 --- a/src/exchange-lib/exchange_api_reserve.c +++ b/src/exchange-lib/exchange_api_reserve.c @@ -840,11 +840,9 @@ TALER_EXCHANGE_reserve_withdraw (struct TALER_EXCHANGE_Handle *exchange, " s:o, s:o}",/* reserve_pub and reserve_sig */ "denom_pub", GNUNET_JSON_from_rsa_public_key (pk->key.rsa_public_key), "coin_ev", GNUNET_JSON_from_data (coin_ev, - coin_ev_size), - "reserve_pub", GNUNET_JSON_from_data (&wsh->reserve_pub, - sizeof (struct TALER_ReservePublicKeyP)), - "reserve_sig", GNUNET_JSON_from_data (&reserve_sig, - sizeof (reserve_sig))); + coin_ev_size), + "reserve_pub", GNUNET_JSON_from_data_auto (&wsh->reserve_pub), + "reserve_sig", GNUNET_JSON_from_data_auto (&reserve_sig)); GNUNET_free (coin_ev); wsh->blinding_key = blinding_key; |