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_exec_aggregator.c | |
parent | b22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff) | |
download | exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.xz |
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_exec_aggregator.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_exec_aggregator.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/exchange-lib/testing_api_cmd_exec_aggregator.c b/src/exchange-lib/testing_api_cmd_exec_aggregator.c index a93f6deba..c51d44989 100644 --- a/src/exchange-lib/testing_api_cmd_exec_aggregator.c +++ b/src/exchange-lib/testing_api_cmd_exec_aggregator.c @@ -147,16 +147,19 @@ struct TALER_TESTING_Command TALER_TESTING_cmd_exec_aggregator (const char *label, const char *config_filename) { - struct TALER_TESTING_Command cmd; struct AggregatorState *as; as = GNUNET_new (struct AggregatorState); as->config_filename = config_filename; - cmd.cls = as; - cmd.label = label; - cmd.run = &aggregator_run; - cmd.cleanup = &aggregator_cleanup; - cmd.traits = &aggregator_traits; + + struct TALER_TESTING_Command cmd = { + .cls = as, + .label = label, + .run = &aggregator_run, + .cleanup = &aggregator_cleanup, + .traits = &aggregator_traits + }; + return cmd; } |