From 0b4008bd84f9812eac943e616a4584a0f9b23ae1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 18 Jan 2020 13:57:47 +0100 Subject: doxygen --- src/lib/testing_api_cmd_insert_deposit.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'src/lib/testing_api_cmd_insert_deposit.c') diff --git a/src/lib/testing_api_cmd_insert_deposit.c b/src/lib/testing_api_cmd_insert_deposit.c index 931ceb162..1f257574f 100644 --- a/src/lib/testing_api_cmd_insert_deposit.c +++ b/src/lib/testing_api_cmd_insert_deposit.c @@ -141,7 +141,7 @@ insert_deposit_run (void *cls, return; } - // prepare and store deposit now. + /* prepare and store deposit now. */ memset (&deposit, 0, sizeof (deposit)); @@ -250,7 +250,7 @@ insert_deposit_cleanup (void *cls, * Offer "insert-deposit" 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. @@ -261,6 +261,10 @@ insert_deposit_traits (void *cls, const char *trait, unsigned int index) { + (void) cls; + (void) ret; + (void) trait; + (void) index; return GNUNET_NO; } @@ -288,7 +292,6 @@ TALER_TESTING_cmd_insert_deposit (const char *label, const char *amount_with_fee, const char *deposit_fee) { - struct TALER_TESTING_Command cmd; struct InsertDepositState *ids; ids = GNUNET_new (struct InsertDepositState); @@ -299,13 +302,17 @@ TALER_TESTING_cmd_insert_deposit (const char *label, ids->amount_with_fee = amount_with_fee; ids->deposit_fee = deposit_fee; - cmd.cls = ids; - cmd.label = label; - cmd.run = &insert_deposit_run; - cmd.cleanup = &insert_deposit_cleanup; - cmd.traits = &insert_deposit_traits; - - return cmd; + { + struct TALER_TESTING_Command cmd = { + .cls = ids, + .label = label, + .run = &insert_deposit_run, + .cleanup = &insert_deposit_cleanup, + .traits = &insert_deposit_traits + }; + + return cmd; + } } -- cgit v1.2.3