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_deposit_wtid.c | |
| parent | 922175d3082b138f4973fe11d81327806e68021d (diff) | |
make use of GNUNET_JSON_from_data_auto where possible
Diffstat (limited to 'src/exchange-lib/exchange_api_deposit_wtid.c')
| -rw-r--r-- | src/exchange-lib/exchange_api_deposit_wtid.c | 15 | 
1 files changed, 5 insertions, 10 deletions
diff --git a/src/exchange-lib/exchange_api_deposit_wtid.c b/src/exchange-lib/exchange_api_deposit_wtid.c index b3c5b328..073ce2b3 100644 --- a/src/exchange-lib/exchange_api_deposit_wtid.c +++ b/src/exchange-lib/exchange_api_deposit_wtid.c @@ -291,17 +291,12 @@ TALER_EXCHANGE_deposit_wtid (struct TALER_EXCHANGE_Handle *exchange,    deposit_wtid_obj = json_pack ("{s:o, s:o," /* H_wire, H_contract */                                  " s:o, s:I," /* coin_pub, transaction_id */                                  " s:o, s:o}", /* merchant_pub, merchant_sig */ -                                "H_wire", GNUNET_JSON_from_data (h_wire, -                                                                sizeof (struct GNUNET_HashCode)), -                                "H_contract", GNUNET_JSON_from_data (h_contract, -                                                                    sizeof (struct GNUNET_HashCode)), -                                "coin_pub", GNUNET_JSON_from_data (coin_pub, -                                                                  sizeof (*coin_pub)), +                                "H_wire", GNUNET_JSON_from_data_auto (h_wire), +                                "H_contract", GNUNET_JSON_from_data_auto (h_contract), +                                "coin_pub", GNUNET_JSON_from_data_auto (coin_pub),                                  "transaction_id", (json_int_t) transaction_id, -                                "merchant_pub", GNUNET_JSON_from_data (&dtp.merchant, -                                                                      sizeof (struct TALER_MerchantPublicKeyP)), -                                "merchant_sig", GNUNET_JSON_from_data (&merchant_sig, -                                                                      sizeof (merchant_sig))); +                                "merchant_pub", GNUNET_JSON_from_data_auto (&dtp.merchant), +                                "merchant_sig", GNUNET_JSON_from_data_auto (&merchant_sig));    dwh = GNUNET_new (struct TALER_EXCHANGE_DepositWtidHandle);    dwh->exchange = exchange;  | 
