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_status.c | |
parent | b22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff) | |
download | exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.xz |
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_status.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_status.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/exchange-lib/testing_api_cmd_status.c b/src/exchange-lib/testing_api_cmd_status.c index f71fe84de..8e9290f6d 100644 --- a/src/exchange-lib/testing_api_cmd_status.c +++ b/src/exchange-lib/testing_api_cmd_status.c @@ -246,7 +246,6 @@ TALER_TESTING_cmd_status (const char *label, const char *expected_balance, unsigned int expected_response_code) { - struct TALER_TESTING_Command cmd; struct StatusState *ss; ss = GNUNET_new (struct StatusState); @@ -254,10 +253,12 @@ TALER_TESTING_cmd_status (const char *label, ss->expected_balance = expected_balance; ss->expected_response_code = expected_response_code; - cmd.cls = ss; - cmd.label = label; - cmd.run = &status_run; - cmd.cleanup = &status_cleanup; + struct TALER_TESTING_Command cmd = { + .cls = ss, + .label = label, + .run = &status_run, + .cleanup = &status_cleanup + }; return cmd; } |