aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_refund.c
diff options
context:
space:
mode:
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 e5911659..f6640d0f 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;
}