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/bank-lib | |
parent | b22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff) |
#5459
Diffstat (limited to 'src/bank-lib')
-rw-r--r-- | src/bank-lib/testing_api_cmd_history.c | 13 | ||||
-rw-r--r-- | src/bank-lib/testing_api_cmd_reject.c | 14 |
2 files changed, 15 insertions, 12 deletions
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 */ |