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_wirewatch.c | |
parent | b22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff) | |
download | exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.gz exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.bz2 exchange-9c82290a1a472008f646a00a1ae802476188783c.zip |
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_exec_wirewatch.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_exec_wirewatch.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/exchange-lib/testing_api_cmd_exec_wirewatch.c b/src/exchange-lib/testing_api_cmd_exec_wirewatch.c index c94be2d48..a81bf5c2b 100644 --- a/src/exchange-lib/testing_api_cmd_exec_wirewatch.c +++ b/src/exchange-lib/testing_api_cmd_exec_wirewatch.c @@ -148,16 +148,20 @@ struct TALER_TESTING_Command TALER_TESTING_cmd_exec_wirewatch (const char *label, const char *config_filename) { - struct TALER_TESTING_Command cmd; struct WirewatchState *ws; ws = GNUNET_new (struct WirewatchState); ws->config_filename = config_filename; - cmd.cls = ws; - cmd.label = label; - cmd.run = &wirewatch_run; - cmd.cleanup = &wirewatch_cleanup; - cmd.traits = &wirewatch_traits; + + + struct TALER_TESTING_Command cmd = { + .cls = ws, + .label = label, + .run = &wirewatch_run, + .cleanup = &wirewatch_cleanup, + .traits = &wirewatch_traits + }; + return cmd; } |