From 58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 5 Apr 2022 17:15:58 +0200 Subject: adapt to latest GNUnet API: GNUNET_JSON_spec_mark_optional() changed --- src/lib/merchant_api_merchant_get_order.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/lib/merchant_api_merchant_get_order.c') diff --git a/src/lib/merchant_api_merchant_get_order.c b/src/lib/merchant_api_merchant_get_order.c index aedeb366..0bb6b6c4 100644 --- a/src/lib/merchant_api_merchant_get_order.c +++ b/src/lib/merchant_api_merchant_get_order.c @@ -86,13 +86,14 @@ handle_unpaid (struct TALER_MERCHANT_OrderMerchantGetHandle *omgh, &osr.details.unpaid.contract_amount), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_string ("already_paid_order_id", - &osr.details.unpaid.already_paid_order_id)), + &osr.details.unpaid.already_paid_order_id), + NULL), GNUNET_JSON_spec_string ("taler_pay_uri", &osr.details.unpaid.taler_pay_uri), GNUNET_JSON_spec_string ("summary", &osr.details.unpaid.summary), GNUNET_JSON_spec_timestamp ("creation_time", - &osr.details.unpaid.creation_time), + &osr.details.unpaid.creation_time), GNUNET_JSON_spec_end () }; @@ -250,7 +251,7 @@ handle_paid (struct TALER_MERCHANT_OrderMerchantGetHandle *omgh, GNUNET_JSON_spec_fixed_auto ("wtid", &wt->wtid), GNUNET_JSON_spec_timestamp ("execution_time", - &wt->execution_time), + &wt->execution_time), TALER_JSON_spec_amount_any ("amount", &wt->total_amount), GNUNET_JSON_spec_bool ("confirmed", @@ -325,7 +326,7 @@ handle_paid (struct TALER_MERCHANT_OrderMerchantGetHandle *omgh, GNUNET_JSON_spec_string ("reason", &ro->reason), GNUNET_JSON_spec_timestamp ("timestamp", - &ro->refund_time), + &ro->refund_time), GNUNET_JSON_spec_end () }; -- cgit v1.2.3