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_sleep.c | |
parent | b22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff) | |
download | exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.xz |
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_sleep.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_sleep.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/exchange-lib/testing_api_cmd_sleep.c b/src/exchange-lib/testing_api_cmd_sleep.c index 91198a28a..165d0aae4 100644 --- a/src/exchange-lib/testing_api_cmd_sleep.c +++ b/src/exchange-lib/testing_api_cmd_sleep.c @@ -88,14 +88,17 @@ TALER_TESTING_cmd_sleep (const char *label, unsigned int duration_s) { struct SleepState *ss; - struct TALER_TESTING_Command cmd; ss = GNUNET_new (struct SleepState); ss->duration = duration_s; - cmd.cls = ss; - cmd.label = label; - cmd.run = &sleep_run; - cmd.cleanup = &sleep_cleanup; + + + struct TALER_TESTING_Command cmd = { + .cls = ss, + .label = label, + .run = &sleep_run, + .cleanup = &sleep_cleanup + }; return cmd; } |