summaryrefslogtreecommitdiff
path: root/src/lib/testing_api_cmd_auditor_exec_auditor_dbinit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-18 13:57:47 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-18 13:58:42 +0100
commit0b4008bd84f9812eac943e616a4584a0f9b23ae1 (patch)
tree4af665fff668f78091e21a9cd89a1454a562018e /src/lib/testing_api_cmd_auditor_exec_auditor_dbinit.c
parent4993863c4cc7e7758f8532ea90253cc60c3358fa (diff)
downloadexchange-0b4008bd84f9812eac943e616a4584a0f9b23ae1.tar.gz
exchange-0b4008bd84f9812eac943e616a4584a0f9b23ae1.tar.bz2
exchange-0b4008bd84f9812eac943e616a4584a0f9b23ae1.zip
doxygen
Diffstat (limited to 'src/lib/testing_api_cmd_auditor_exec_auditor_dbinit.c')
-rw-r--r--src/lib/testing_api_cmd_auditor_exec_auditor_dbinit.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/lib/testing_api_cmd_auditor_exec_auditor_dbinit.c b/src/lib/testing_api_cmd_auditor_exec_auditor_dbinit.c
index 7044cb39f..828622e23 100644
--- a/src/lib/testing_api_cmd_auditor_exec_auditor_dbinit.c
+++ b/src/lib/testing_api_cmd_auditor_exec_auditor_dbinit.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_dbinit.c
* @brief run the taler-auditor-dbinit "-r" command
@@ -112,7 +111,7 @@ auditor_dbinit_cleanup (void *cls,
* Offer "auditor-dbinit" 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.
@@ -147,17 +146,21 @@ struct TALER_TESTING_Command
TALER_TESTING_cmd_exec_auditor_dbinit (const char *label,
const char *config_filename)
{
- struct TALER_TESTING_Command cmd;
struct AuditorDbinitState *ks;
ks = GNUNET_new (struct AuditorDbinitState);
ks->config_filename = config_filename;
- cmd.cls = ks;
- cmd.label = label;
- cmd.run = &auditor_dbinit_run;
- cmd.cleanup = &auditor_dbinit_cleanup;
- cmd.traits = &auditor_dbinit_traits;
- return cmd;
+ {
+ struct TALER_TESTING_Command cmd = {
+ .cls = ks,
+ .label = label.
+ .run = &auditor_dbinit_run,
+ .cleanup = &auditor_dbinit_cleanup,
+ .traits = &auditor_dbinit_traits
+ };
+
+ return cmd;
+ }
}