diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-05 17:15:58 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-05 17:15:58 +0200 |
commit | 58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a (patch) | |
tree | ef9625d7929245f48d0142a658a702ca758399bd /src/backend/taler-merchant-httpd_post-orders-ID-pay.c | |
parent | 69131a3253264dd8e7b595f4dd985c5ad8a8e2de (diff) | |
download | merchant-58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a.tar.gz merchant-58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a.tar.bz2 merchant-58f1ae25c69e0e378af2c45b929c8bbf7d5c1b2a.zip |
adapt to latest GNUnet API: GNUNET_JSON_spec_mark_optional() changed
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-pay.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c index ff4f1ab1..10dca3d9 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -1975,7 +1975,8 @@ parse_pay (struct MHD_Connection *connection, &coins), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_string ("session_id", - &session_id)), + &session_id), + NULL), GNUNET_JSON_spec_end () }; @@ -2059,10 +2060,12 @@ parse_pay (struct MHD_Connection *connection, &exchange_url), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_fixed_auto ("minimum_age_sig", - &minimum_age_sig)), + &minimum_age_sig), + NULL), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_json ("age_commitment", - &age_commitment)), + &age_commitment), + NULL), GNUNET_JSON_spec_end () }; enum GNUNET_GenericReturnValue res; @@ -2264,7 +2267,8 @@ parse_pay (struct MHD_Connection *connection, &pc->amount), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_string ("fulfillment_url", - &fulfillment_url)), + &fulfillment_url), + NULL), TALER_JSON_spec_amount ("max_fee", TMH_currency, &pc->max_fee), @@ -2285,7 +2289,8 @@ parse_pay (struct MHD_Connection *connection, &pc->h_wire), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_fixed_auto ("minimum_age", - &pc->minimum_age)), + &pc->minimum_age), + NULL), GNUNET_JSON_spec_end () }; enum GNUNET_GenericReturnValue res; |