From 9c82290a1a472008f646a00a1ae802476188783c Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 19 Dec 2018 11:43:05 +0100 Subject: #5459 --- src/exchange-lib/testing_api_cmd_refund.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src/exchange-lib/testing_api_cmd_refund.c') 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; } -- cgit v1.2.3