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_signal.c | |
parent | b22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff) |
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_signal.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_signal.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/exchange-lib/testing_api_cmd_signal.c b/src/exchange-lib/testing_api_cmd_signal.c index b9487cd6f..f4fd8bb76 100644 --- a/src/exchange-lib/testing_api_cmd_signal.c +++ b/src/exchange-lib/testing_api_cmd_signal.c @@ -99,15 +99,18 @@ TALER_TESTING_cmd_signal (const char *label, int signal) { struct SignalState *ss; - struct TALER_TESTING_Command cmd; ss = GNUNET_new (struct SignalState); ss->process = process; ss->signal = signal; - cmd.cls = ss; - cmd.label = label; - cmd.run = &signal_run; - cmd.cleanup = &signal_cleanup; + + + struct TALER_TESTING_Command cmd = { + .cls = ss, + .label = label, + .run = &signal_run, + .cleanup = &signal_cleanup + }; return cmd; } |