summaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_exec_wirewatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_exec_wirewatch.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_exec_wirewatch.c16
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;
}