diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-18 13:57:47 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-18 13:58:42 +0100 |
commit | 0b4008bd84f9812eac943e616a4584a0f9b23ae1 (patch) | |
tree | 4af665fff668f78091e21a9cd89a1454a562018e /src/lib/testing_api_cmd_auditor_exec_wire_auditor.c | |
parent | 4993863c4cc7e7758f8532ea90253cc60c3358fa (diff) | |
download | exchange-0b4008bd84f9812eac943e616a4584a0f9b23ae1.tar.xz |
doxygen
Diffstat (limited to 'src/lib/testing_api_cmd_auditor_exec_wire_auditor.c')
-rw-r--r-- | src/lib/testing_api_cmd_auditor_exec_wire_auditor.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/lib/testing_api_cmd_auditor_exec_wire_auditor.c b/src/lib/testing_api_cmd_auditor_exec_wire_auditor.c index 12b2344db..458a0b349 100644 --- a/src/lib/testing_api_cmd_auditor_exec_wire_auditor.c +++ b/src/lib/testing_api_cmd_auditor_exec_wire_auditor.c @@ -16,7 +16,6 @@ License along with TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ - /** * @file lib/testing_api_cmd_auditor_exec_wire_auditor.c * @brief run the taler-wire-auditor command @@ -111,7 +110,7 @@ wire_auditor_cleanup (void *cls, * Offer "wire-auditor" CMD internal data to other commands. * * @param cls closure. - * @param ret[out] result + * @param[out] ret result * @param trait name of the trait. * @param index index number of the object to offer. * @return #GNUNET_OK on success. @@ -146,17 +145,21 @@ struct TALER_TESTING_Command TALER_TESTING_cmd_exec_wire_auditor (const char *label, const char *config_filename) { - struct TALER_TESTING_Command cmd; struct WireAuditorState *ks; ks = GNUNET_new (struct WireAuditorState); ks->config_filename = config_filename; - cmd.cls = ks; - cmd.label = label; - cmd.run = &wire_auditor_run; - cmd.cleanup = &wire_auditor_cleanup; - cmd.traits = &wire_auditor_traits; - return cmd; + { + struct TALER_TESTING_Command cmd = { + .cls = ks, + .label = label, + .run = &wire_auditor_run, + .cleanup = &wire_auditor_cleanup, + .traits = &wire_auditor_traits + }; + + return cmd; + } } |