summaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_refund.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-19 11:43:05 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-19 11:43:05 +0100
commit9c82290a1a472008f646a00a1ae802476188783c (patch)
treeb7219b342384e16bb29fb7ebb505a48ae2836dd0 /src/exchange-lib/testing_api_cmd_refund.c
parentb22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff)
downloadexchange-9c82290a1a472008f646a00a1ae802476188783c.tar.gz
exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.bz2
exchange-9c82290a1a472008f646a00a1ae802476188783c.zip
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_refund.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_refund.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/exchange-lib/testing_api_cmd_refund.c b/src/exchange-lib/testing_api_cmd_refund.c
index e59116591..f6640d0fc 100644
--- a/src/exchange-lib/testing_api_cmd_refund.c
+++ b/src/exchange-lib/testing_api_cmd_refund.c
@@ -268,7 +268,6 @@ TALER_TESTING_cmd_refund (const char *label,
const char *coin_reference)
{
struct RefundState *rs;
- struct TALER_TESTING_Command cmd;
rs = GNUNET_new (struct RefundState);
@@ -277,10 +276,12 @@ TALER_TESTING_cmd_refund (const char *label,
rs->refund_fee = refund_fee;
rs->coin_reference = coin_reference;
- cmd.cls = rs;
- cmd.label = label;
- cmd.run = &refund_run;
- cmd.cleanup = &refund_cleanup;
+ struct TALER_TESTING_Command cmd = {
+ .cls = rs,
+ .label = label,
+ .run = &refund_run,
+ .cleanup = &refund_cleanup
+ };
return cmd;
}
@@ -310,7 +311,6 @@ TALER_TESTING_cmd_refund_with_id
uint64_t refund_transaction_id)
{
struct RefundState *rs;
- struct TALER_TESTING_Command cmd;
rs = GNUNET_new (struct RefundState);
@@ -320,10 +320,12 @@ TALER_TESTING_cmd_refund_with_id
rs->coin_reference = coin_reference;
rs->refund_transaction_id = refund_transaction_id;
- cmd.cls = rs;
- cmd.label = label;
- cmd.run = &refund_run;
- cmd.cleanup = &refund_cleanup;
+ struct TALER_TESTING_Command cmd = {
+ .cls = rs,
+ .label = label,
+ .run = &refund_run,
+ .cleanup = &refund_cleanup
+ };
return cmd;
}