summaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_sleep.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-19 11:43:05 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-19 11:43:05 +0100
commit9c82290a1a472008f646a00a1ae802476188783c (patch)
treeb7219b342384e16bb29fb7ebb505a48ae2836dd0 /src/exchange-lib/testing_api_cmd_sleep.c
parentb22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff)
downloadexchange-9c82290a1a472008f646a00a1ae802476188783c.tar.gz
exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.bz2
exchange-9c82290a1a472008f646a00a1ae802476188783c.zip
#5459
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 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;
}