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_wire.c | |
parent | b22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff) | |
download | exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.gz exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.bz2 exchange-9c82290a1a472008f646a00a1ae802476188783c.zip |
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_wire.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_wire.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/exchange-lib/testing_api_cmd_wire.c b/src/exchange-lib/testing_api_cmd_wire.c index e6fe9f97c..0153af195 100644 --- a/src/exchange-lib/testing_api_cmd_wire.c +++ b/src/exchange-lib/testing_api_cmd_wire.c @@ -216,7 +216,6 @@ TALER_TESTING_cmd_wire (const char *label, const char *expected_fee, unsigned int expected_response_code) { - struct TALER_TESTING_Command cmd; struct WireState *ws; ws = GNUNET_new (struct WireState); @@ -224,10 +223,12 @@ TALER_TESTING_cmd_wire (const char *label, ws->expected_fee = expected_fee; ws->expected_response_code = expected_response_code; - cmd.cls = ws; - cmd.label = label; - cmd.run = &wire_run; - cmd.cleanup = &wire_cleanup; + struct TALER_TESTING_Command cmd = { + .cls = ws, + .label = label, + .run = &wire_run, + .cleanup = &wire_cleanup + }; return cmd; } |