summaryrefslogtreecommitdiff
path: root/src/lib/testing_api_cmd_auditor_exec_auditor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/testing_api_cmd_auditor_exec_auditor.c')
-rw-r--r--src/lib/testing_api_cmd_auditor_exec_auditor.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/lib/testing_api_cmd_auditor_exec_auditor.c b/src/lib/testing_api_cmd_auditor_exec_auditor.c
index 762611383..f56038e78 100644
--- a/src/lib/testing_api_cmd_auditor_exec_auditor.c
+++ b/src/lib/testing_api_cmd_auditor_exec_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_auditor.c
* @brief run the taler-auditor command
@@ -111,7 +110,7 @@ auditor_cleanup (void *cls,
* Offer "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_auditor (const char *label,
const char *config_filename)
{
- struct TALER_TESTING_Command cmd;
struct AuditorState *ks;
ks = GNUNET_new (struct AuditorState);
ks->config_filename = config_filename;
- cmd.cls = ks;
- cmd.label = label;
- cmd.run = &auditor_run;
- cmd.cleanup = &auditor_cleanup;
- cmd.traits = &auditor_traits;
- return cmd;
+ {
+ struct TALER_TESTING_Command cmd = {
+ .cls = ks,
+ .label = label,
+ .run = &auditor_run,
+ .cleanup = &auditor_cleanup,
+ .traits = &auditor_traits
+ };
+
+ return cmd;
+ }
}