diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-19 11:43:05 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-19 11:43:05 +0100 |
commit | 9c82290a1a472008f646a00a1ae802476188783c (patch) | |
tree | b7219b342384e16bb29fb7ebb505a48ae2836dd0 /src/exchange-lib/testing_api_cmd_withdraw.c | |
parent | b22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff) | |
download | exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.xz |
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_withdraw.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_withdraw.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/exchange-lib/testing_api_cmd_withdraw.c b/src/exchange-lib/testing_api_cmd_withdraw.c index b42a54585..7224f65e4 100644 --- a/src/exchange-lib/testing_api_cmd_withdraw.c +++ b/src/exchange-lib/testing_api_cmd_withdraw.c @@ -412,7 +412,6 @@ TALER_TESTING_cmd_withdraw_amount const char *amount, unsigned int expected_response_code) { - struct TALER_TESTING_Command cmd; struct WithdrawState *ws; ws = GNUNET_new (struct WithdrawState); @@ -431,11 +430,14 @@ TALER_TESTING_cmd_withdraw_amount ws->expected_response_code = expected_response_code; - cmd.cls = ws; - cmd.label = label; - cmd.run = &withdraw_run; - cmd.cleanup = &withdraw_cleanup; - cmd.traits = &withdraw_traits; + struct TALER_TESTING_Command cmd = { + .cls = ws, + .label = label, + .run = &withdraw_run, + .cleanup = &withdraw_cleanup, + .traits = &withdraw_traits + }; + return cmd; } @@ -460,7 +462,6 @@ TALER_TESTING_cmd_withdraw_denomination const struct TALER_EXCHANGE_DenomPublicKey *dk, unsigned int expected_response_code) { - struct TALER_TESTING_Command cmd; struct WithdrawState *ws; if (NULL == dk) @@ -475,11 +476,14 @@ TALER_TESTING_cmd_withdraw_denomination ws->pk = dk; ws->expected_response_code = expected_response_code; - cmd.cls = ws; - cmd.label = label; - cmd.run = &withdraw_run; - cmd.cleanup = &withdraw_cleanup; - cmd.traits = &withdraw_traits; + struct TALER_TESTING_Command cmd = { + .cls = ws, + .label = label, + .run = &withdraw_run, + .cleanup = &withdraw_cleanup, + .traits = &withdraw_traits + }; + return cmd; } |