From 9c82290a1a472008f646a00a1ae802476188783c Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 19 Dec 2018 11:43:05 +0100 Subject: #5459 --- src/bank-lib/testing_api_cmd_history.c | 13 +++++++------ src/bank-lib/testing_api_cmd_reject.c | 14 ++++++++------ 2 files changed, 15 insertions(+), 12 deletions(-) (limited to 'src/bank-lib') diff --git a/src/bank-lib/testing_api_cmd_history.c b/src/bank-lib/testing_api_cmd_history.c index c60f6a13d..6070d0ae3 100644 --- a/src/bank-lib/testing_api_cmd_history.c +++ b/src/bank-lib/testing_api_cmd_history.c @@ -793,7 +793,6 @@ TALER_TESTING_cmd_bank_history long long num_results) { struct HistoryState *hs; - struct TALER_TESTING_Command cmd; hs = GNUNET_new (struct HistoryState); hs->bank_url = bank_url; @@ -803,11 +802,13 @@ TALER_TESTING_cmd_bank_history hs->num_results = num_results; hs->ascending = ascending; - cmd.label = label; - cmd.cls = hs; - cmd.run = &history_run; - cmd.cleanup = &history_cleanup; - cmd.traits = &history_traits; + struct TALER_TESTING_Command cmd = { + .label = label, + .cls = hs, + .run = &history_run, + .cleanup = &history_cleanup, + .traits = &history_traits + }; return cmd; } diff --git a/src/bank-lib/testing_api_cmd_reject.c b/src/bank-lib/testing_api_cmd_reject.c index 2bec10ad7..46d67ff21 100644 --- a/src/bank-lib/testing_api_cmd_reject.c +++ b/src/bank-lib/testing_api_cmd_reject.c @@ -200,20 +200,22 @@ TALER_TESTING_cmd_bank_reject (const char *label, const char *deposit_reference) { struct RejectState *rs; - struct TALER_TESTING_Command cmd; rs = GNUNET_new (struct RejectState); rs->bank_url = bank_url; rs->deposit_reference = deposit_reference; - cmd.cls = rs; - cmd.run = &reject_run; - cmd.cleanup = &reject_cleanup; - cmd.label = label; - cmd.traits = &reject_traits; + struct TALER_TESTING_Command cmd = { + .cls = rs, + .run = &reject_run, + .cleanup = &reject_cleanup, + .label = label, + .traits = &reject_traits + }; return cmd; } + /* end of testing_api_cmd_reject.c */ -- cgit v1.2.3