summaryrefslogtreecommitdiff
path: root/src/bank-lib/testing_api_cmd_history.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-19 11:43:05 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-19 11:43:05 +0100
commit9c82290a1a472008f646a00a1ae802476188783c (patch)
treeb7219b342384e16bb29fb7ebb505a48ae2836dd0 /src/bank-lib/testing_api_cmd_history.c
parentb22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff)
downloadexchange-9c82290a1a472008f646a00a1ae802476188783c.tar.gz
exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.bz2
exchange-9c82290a1a472008f646a00a1ae802476188783c.zip
#5459
Diffstat (limited to 'src/bank-lib/testing_api_cmd_history.c')
-rw-r--r--src/bank-lib/testing_api_cmd_history.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/bank-lib/testing_api_cmd_history.c b/src/bank-lib/testing_api_cmd_history.c
index c60f6a13..6070d0ae 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;
}