summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_post_order_claim.c
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-29 21:38:21 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-29 21:38:21 -0400
commit5bdbbd68c4e11a322fe5c1b92c5ccc962863dbb1 (patch)
treefc52eb9ae5251e557693b725f9e240d22712e661 /src/lib/merchant_api_post_order_claim.c
parent26085c8712c509d1384d1de99fec1bc9d3d15386 (diff)
downloadmerchant-5bdbbd68c4e11a322fe5c1b92c5ccc962863dbb1.tar.gz
merchant-5bdbbd68c4e11a322fe5c1b92c5ccc962863dbb1.tar.bz2
merchant-5bdbbd68c4e11a322fe5c1b92c5ccc962863dbb1.zip
revert to use pointers for claim token client lib
Diffstat (limited to 'src/lib/merchant_api_post_order_claim.c')
-rw-r--r--src/lib/merchant_api_post_order_claim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/merchant_api_post_order_claim.c b/src/lib/merchant_api_post_order_claim.c
index 58e2f4bf..5ec2e243 100644
--- a/src/lib/merchant_api_post_order_claim.c
+++ b/src/lib/merchant_api_post_order_claim.c
@@ -185,7 +185,7 @@ TALER_MERCHANT_order_claim (struct GNUNET_CURL_Context *ctx,
const char *backend_url,
const char *order_id,
const struct GNUNET_CRYPTO_EddsaPublicKey *nonce,
- const struct TALER_ClaimTokenP claim_token,
+ const struct TALER_ClaimTokenP *claim_token,
TALER_MERCHANT_OrderClaimCallback cb,
void *cb_cls)
{
@@ -200,12 +200,12 @@ TALER_MERCHANT_order_claim (struct GNUNET_CURL_Context *ctx,
GNUNET_break (0);
return NULL;
}
- if (0 != GNUNET_is_zero (&claim_token))
+ if (NULL != claim_token)
{
GNUNET_assert (0 ==
json_object_set_new (req_obj,
"token",
- GNUNET_JSON_from_data_auto (&claim_token)));
+ GNUNET_JSON_from_data_auto (claim_token)));
}
och = GNUNET_new (struct TALER_MERCHANT_OrderClaimHandle);
och->ctx = ctx;