aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_sleep.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_sleep.c13
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 91198a28..165d0aae 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;
}