diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-31 12:59:50 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-31 12:59:50 +0100 |
commit | 385b3e77dfa1b6bbaee5d0ec9da9bcbd69e91b70 (patch) | |
tree | 61550b547a56179e6abac9bee3502ecc5c537fa8 /src/lib | |
parent | 325aaddbd6612c3baa56d01f6777faf77d082588 (diff) |
tighten formatting rules
Diffstat (limited to 'src/lib')
53 files changed, 107 insertions, 72 deletions
diff --git a/src/lib/auditor_api_handle.c b/src/lib/auditor_api_handle.c index dfccedaa9..a3264c020 100644 --- a/src/lib/auditor_api_handle.c +++ b/src/lib/auditor_api_handle.c @@ -258,6 +258,7 @@ decode_version_json (const json_t *resp_obj, return GNUNET_OK; } + /** * Initiate download of /version from the auditor. * diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c index 2e13b678e..2c7923cef 100644 --- a/src/lib/exchange_api_common.c +++ b/src/lib/exchange_api_common.c @@ -224,10 +224,8 @@ TALER_EXCHANGE_verify_coin_history (const char *currency, for the exchange to lie here, so not checking is probably OK (an auditor ought to check, though). Then again, we similarly had no reason to check the merchant's signature (other than a - well-formendess check). */ - /* TODO: check that deposit fee and coin value match - our expectations from /keys! */ - add = GNUNET_NO; + well-formendess check). *//* TODO: check that deposit fee and coin value match + our expectations from /keys! */add = GNUNET_NO; } else if (0 == strcasecmp (type, "PAYBACK")) @@ -297,8 +295,7 @@ TALER_EXCHANGE_verify_coin_history (const char *currency, However, for the implementation, we first *add* up all of these negative amounts, as we might get refunds before deposits from a semi-evil exchange. Then, at the end, we do - the subtraction by calculating "total = total - rtotal" */ - GNUNET_assert (GNUNET_NO == add); + the subtraction by calculating "total = total - rtotal" */GNUNET_assert (GNUNET_NO == add); if (GNUNET_OK != TALER_amount_add (&rtotal, &rtotal, @@ -353,4 +350,5 @@ TALER_EXCHANGE_get_exchange_signing_key_info (const struct return NULL; } + /* end of exchange_api_common.c */ diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index f4a193d30..efac70777 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -1138,6 +1138,7 @@ TALER_EXCHANGE_set_now (struct TALER_EXCHANGE_Handle *exchange, exchange->now = now; } + /** * Unset the fake now to be used when requesting "/keys". * @@ -1389,6 +1390,7 @@ TEAH_handle_reset (struct TALER_EXCHANGE_Handle *h) h->state = MHS_INIT; } + /** * Check if the handle is ready to process requests. * @@ -1926,7 +1928,6 @@ TALER_EXCHANGE_connect } - /** * Initiate download of /keys from the exchange. * diff --git a/src/lib/exchange_api_refresh.c b/src/lib/exchange_api_refresh.c index f99f3ab02..db3692bcd 100644 --- a/src/lib/exchange_api_refresh.c +++ b/src/lib/exchange_api_refresh.c @@ -617,14 +617,14 @@ deserialize_melt_data (const char *buf, &buf[off], buf_size - off, &ok); - for (unsigned int i = 0; (i<md->num_fresh_coins)&&(GNUNET_YES == ok); i++) + for (unsigned int i = 0; (i<md->num_fresh_coins) && (GNUNET_YES == ok); i++) off += deserialize_denomination_key (&md->fresh_pks[i], &buf[off], buf_size - off, &ok); for (unsigned int i = 0; i<TALER_CNC_KAPPA; i++) - for (unsigned int j = 0; (j<md->num_fresh_coins)&&(GNUNET_YES == ok); j++) + for (unsigned int j = 0; (j<md->num_fresh_coins) && (GNUNET_YES == ok); j++) off += deserialize_fresh_coin (&md->fresh_coins[i][j], &buf[off], buf_size - off, diff --git a/src/lib/exchange_api_refresh_link.c b/src/lib/exchange_api_refresh_link.c index 2369b90b3..234043120 100644 --- a/src/lib/exchange_api_refresh_link.c +++ b/src/lib/exchange_api_refresh_link.c @@ -203,8 +203,7 @@ parse_refresh_link_ok (struct TALER_EXCHANGE_RefreshLinkHandle *rlh, loop once for 'session=0' in most cases. num_coins tracks the size of the 1d array we return, - whilst 'i' and 'session' track the 2d array. */ - for (session = 0; session<json_array_size (json); session++) + whilst 'i' and 'session' track the 2d array. */for (session = 0; session<json_array_size (json); session++) { json_t *jsona; struct GNUNET_JSON_Specification spec[] = { diff --git a/src/lib/exchange_api_reserve.c b/src/lib/exchange_api_reserve.c index f90bdbb8c..a57d4e9dc 100644 --- a/src/lib/exchange_api_reserve.c +++ b/src/lib/exchange_api_reserve.c @@ -233,8 +233,7 @@ parse_reserve_history (struct TALER_EXCHANGE_Handle *exchange, isn't listed twice by the exchange. We use the "uuid" array to remember the hashes of all purposes, and compare the hashes to find - duplicates. */ - GNUNET_CRYPTO_hash (&withdraw_purpose, + duplicates. */GNUNET_CRYPTO_hash (&withdraw_purpose, ntohl (withdraw_purpose.purpose.size), &uuid[uuid_off]); for (i = 0; i<uuid_off; i++) diff --git a/src/lib/test_auditor_api.c b/src/lib/test_auditor_api.c index 656819aa3..85983277e 100644 --- a/src/lib/test_auditor_api.c +++ b/src/lib/test_auditor_api.c @@ -203,8 +203,7 @@ run (void *cls, * test-suite gave a account number of _424_ to the user at * this step; to type less, here the _42_ number is reused. * Does this change the tests semantics? - */ - CMD_TRANSFER_TO_EXCHANGE ("refresh-create-reserve-1", + */CMD_TRANSFER_TO_EXCHANGE ("refresh-create-reserve-1", "EUR:5.01"), /** * Make previous command effective. @@ -265,8 +264,7 @@ run (void *cls, * fresh merchant public key! NOTE: this comment comes * "verbatim" from the old test-suite, and IMO does not explain * a lot! - */ - CMD_EXEC_AGGREGATOR ("run-aggregator"), + */CMD_EXEC_AGGREGATOR ("run-aggregator"), /** * Check all the transfers took place. @@ -490,8 +488,7 @@ run (void *cls, * These commands should close the reserve because the aggregator * is given a config file that ovverrides the reserve expiration * time (making it now-ish) - */ - CMD_TRANSFER_TO_EXCHANGE ("short-lived-reserve", + */CMD_TRANSFER_TO_EXCHANGE ("short-lived-reserve", "EUR:5.01"), TALER_TESTING_cmd_exec_wirewatch ("short-lived-aggregation", CONFIG_FILE_EXPIRE_RESERVE_NOW), @@ -503,8 +500,7 @@ run (void *cls, * then have the rest paid back. Check deposit of other coin * fails. (Do not use EUR:5 here as the EUR:5 coin was * revoked and we did not bother to create a new one...) - */ - CMD_TRANSFER_TO_EXCHANGE ("payback-create-reserve-2", + */CMD_TRANSFER_TO_EXCHANGE ("payback-create-reserve-2", "EUR:2.02"), /** * Make previous command effective. @@ -795,4 +791,5 @@ main (int argc, return 0; } + /* end of test_auditor_api.c */ diff --git a/src/lib/test_auditor_api_version.c b/src/lib/test_auditor_api_version.c index 696e3db27..7444786b8 100644 --- a/src/lib/test_auditor_api_version.c +++ b/src/lib/test_auditor_api_version.c @@ -160,4 +160,5 @@ main (int argc, return global_ret; } + /* end of test_auditor_api_version.c */ diff --git a/src/lib/test_exchange_api.c b/src/lib/test_exchange_api.c index eeccd3bc2..23a52be1f 100644 --- a/src/lib/test_exchange_api.c +++ b/src/lib/test_exchange_api.c @@ -248,8 +248,7 @@ run (void *cls, * contract terms' hashes. So since the contract terms are * exactly the same as the previous command, * how can a different id be generated? - */ - TALER_TESTING_cmd_deposit + */TALER_TESTING_cmd_deposit ("deposit-double-1", "withdraw-coin-1", 0, TALER_TESTING_make_wire_details (43, fakebank_url), @@ -277,8 +276,7 @@ run (void *cls, * test-suite gave a account number of _424_ to the user at * this step; to type less, here the _42_ number is reused. * Does this change the tests semantics? - */ - CMD_TRANSFER_TO_EXCHANGE ("refresh-create-reserve-1", + */CMD_TRANSFER_TO_EXCHANGE ("refresh-create-reserve-1", "EUR:5.01"), /** @@ -298,8 +296,7 @@ run (void *cls, * Try to partially spend (deposit) 1 EUR of the 5 EUR coin * (in full) (merchant would receive EUR:0.99 due to 1 ct * deposit fee) - */ - TALER_TESTING_cmd_deposit + */TALER_TESTING_cmd_deposit ("refresh-deposit-partial", "refresh-withdraw-coin-1", 0, TALER_TESTING_make_wire_details (42, @@ -381,8 +378,7 @@ run (void *cls, * Try resolving a deposit's WTID, as we never triggered * execution of transactions, the answer should be that * the exchange knows about the deposit, but has no WTID yet. - */ - TALER_TESTING_cmd_track_transaction + */TALER_TESTING_cmd_track_transaction ("deposit-wtid-found", "deposit-simple", 0, MHD_HTTP_ACCEPTED, NULL), @@ -390,8 +386,7 @@ run (void *cls, * Try resolving a deposit's WTID for a failed deposit. * As the deposit failed, the answer should be that the * exchange does NOT know about the deposit. - */ - TALER_TESTING_cmd_track_transaction + */TALER_TESTING_cmd_track_transaction ("deposit-wtid-failing", "deposit-double-2", 0, MHD_HTTP_NOT_FOUND, NULL), @@ -399,8 +394,7 @@ run (void *cls, * Try resolving an undefined (all zeros) WTID; this * should fail as obviously the exchange didn't use that * WTID value for any transaction. - */ - TALER_TESTING_cmd_track_transfer_empty + */TALER_TESTING_cmd_track_transfer_empty ("wire-deposit-failing", NULL, 0, MHD_HTTP_NOT_FOUND), @@ -410,8 +404,7 @@ run (void *cls, * fresh merchant public key! NOTE: this comment comes * "verbatim" from the old test-suite, and IMO does not explain * a lot! - */ - CMD_EXEC_AGGREGATOR ("run-aggregator"), + */CMD_EXEC_AGGREGATOR ("run-aggregator"), /** * Check all the transfers took place. @@ -560,9 +553,7 @@ run (void *cls, * the preliminary transfer (used to withdraw) from the * fakebank and the second to actually check there are not * other transfers around. - */ - - TALER_TESTING_cmd_check_bank_transfer + */TALER_TESTING_cmd_check_bank_transfer ("check_bank_transfer-pre-refund", exchange_url, "EUR:5.01", 42, 2), @@ -657,8 +648,7 @@ run (void *cls, * Run transfers. This will do the transfer as refund deadline * was 0, except of course because the refund succeeded, the * transfer should no longer be done. - */ - CMD_EXEC_AGGREGATOR ("run-aggregator-3b"), + */CMD_EXEC_AGGREGATOR ("run-aggregator-3b"), /* check that aggregator didn't do anything, as expected */ TALER_TESTING_cmd_check_bank_empty @@ -729,8 +719,7 @@ run (void *cls, * These commands should close the reserve because * the aggregator is given a config file that ovverrides * the reserve expiration time (making it now-ish) - */ - CMD_TRANSFER_TO_EXCHANGE + */CMD_TRANSFER_TO_EXCHANGE ("short-lived-reserve", "EUR:5.01"), @@ -773,8 +762,7 @@ run (void *cls, * then have the rest paid back. Check deposit of other coin * fails. (Do not use EUR:5 here as the EUR:5 coin was * revoked and we did not bother to create a new one...) - */ - CMD_TRANSFER_TO_EXCHANGE ("payback-create-reserve-2", + */CMD_TRANSFER_TO_EXCHANGE ("payback-create-reserve-2", "EUR:2.02"), /* Make previous command effective. */ @@ -1008,4 +996,5 @@ main (int argc, return 0; } + /* end of test_exchange_api.c */ diff --git a/src/lib/test_exchange_api_interpreter_on-off.c b/src/lib/test_exchange_api_interpreter_on-off.c index 40094ad4b..d30dee952 100644 --- a/src/lib/test_exchange_api_interpreter_on-off.c +++ b/src/lib/test_exchange_api_interpreter_on-off.c @@ -124,4 +124,5 @@ main (int argc, return 0; } + /* end of test_exchange_api_keys_cherry_picking_new.c */ diff --git a/src/lib/test_exchange_api_keys_cherry_picking.c b/src/lib/test_exchange_api_keys_cherry_picking.c index 3acc27536..8805e7c56 100644 --- a/src/lib/test_exchange_api_keys_cherry_picking.c +++ b/src/lib/test_exchange_api_keys_cherry_picking.c @@ -166,8 +166,7 @@ run (void *cls, * key set. The new KS will have only one key, because the * current lookahead_sign == 60 seconds and the key's withdraw * duration is 80 seconds. - */ - TALER_TESTING_cmd_exec_keyup_with_now + */TALER_TESTING_cmd_exec_keyup_with_now ("keyup-1", CONFIG_FILE, TTH_parse_time (JAN2030)), @@ -175,8 +174,7 @@ run (void *cls, * Should return 1 new key, + the original one. NOTE: the * original DK will never be 'cancelled' as for the current * libtalerexchange logic, so it must always be counted. - */ - TALER_TESTING_cmd_check_keys_with_now + */TALER_TESTING_cmd_check_keys_with_now ("check-keys-2", 2, /* generation */ 2, @@ -204,9 +202,7 @@ run (void *cls, * very initial setup, and 1 from the 'keyup-1' CMD) * ---- * 46 - */ - - TALER_TESTING_cmd_check_keys_with_now + */TALER_TESTING_cmd_check_keys_with_now ("check-keys-3", 3, NDKS_RIGHT_BEFORE_SERIALIZATION, @@ -269,4 +265,5 @@ main (int argc, return 0; } + /* end of test_exchange_api_keys_cherry_picking.c */ diff --git a/src/lib/test_exchange_api_overlapping_keys_bug.c b/src/lib/test_exchange_api_overlapping_keys_bug.c index 6680fbbc9..a5ddac516 100644 --- a/src/lib/test_exchange_api_overlapping_keys_bug.c +++ b/src/lib/test_exchange_api_overlapping_keys_bug.c @@ -132,4 +132,5 @@ main (int argc, return 0; } + /* end of test_exchange_api_overlapping_keys_bug.c */ diff --git a/src/lib/test_exchange_api_revocation.c b/src/lib/test_exchange_api_revocation.c index c0c96766c..dfe185450 100644 --- a/src/lib/test_exchange_api_revocation.c +++ b/src/lib/test_exchange_api_revocation.c @@ -134,8 +134,7 @@ run (void *cls, * Try to partially spend (deposit) 1 EUR of the 5 EUR coin * (in full) (merchant would receive EUR:0.99 due to 1 ct * deposit fee) - */ - TALER_TESTING_cmd_deposit + */TALER_TESTING_cmd_deposit ("deposit-partial", "withdraw-coin-1", 0, TALER_TESTING_make_wire_details (42, @@ -278,4 +277,5 @@ main (int argc, return 0; } + /* end of test_exchange_api_revocation.c */ diff --git a/src/lib/test_exchange_api_twisted.c b/src/lib/test_exchange_api_twisted.c index 52c928341..739669b97 100644 --- a/src/lib/test_exchange_api_twisted.c +++ b/src/lib/test_exchange_api_twisted.c @@ -213,8 +213,7 @@ run (void *cls, * NOTE: not all CMDs actually need the twister, * so it may be better to move those into the "main" * lib test suite. - */ - struct TALER_TESTING_Command refund[] = { + */struct TALER_TESTING_Command refund[] = { CMD_TRANSFER_TO_EXCHANGE ("create-reserve-r1", @@ -328,6 +327,7 @@ run (void *cls, fakebank_url); } + /** * Kill, wait, and destroy convenience function. * @@ -341,6 +341,7 @@ purge_process (struct GNUNET_OS_Process *process) GNUNET_OS_process_destroy (process); } + int main (int argc, char *const *argv) @@ -395,4 +396,5 @@ main (int argc, return 0; } + /* end of test_exchange_api_twisted.c */ diff --git a/src/lib/testing_api_cmd_bank_check.c b/src/lib/testing_api_cmd_bank_check.c index 0006b6e5e..f51c535a1 100644 --- a/src/lib/testing_api_cmd_bank_check.c +++ b/src/lib/testing_api_cmd_bank_check.c @@ -172,6 +172,7 @@ check_bank_transfer_run (void *cls, TALER_TESTING_interpreter_next (is); } + /** * Free the state of a "bank check" CMD. * @@ -189,6 +190,7 @@ check_bank_transfer_cleanup GNUNET_free (bcs); } + /** * Offer internal data from a "bank check" CMD state. * @@ -230,7 +232,6 @@ check_bank_transfer_traits (void *cls, } - /** * Make a "bank check" CMD. It checks whether a * particular wire transfer has been made or not. @@ -273,6 +274,7 @@ TALER_TESTING_cmd_check_bank_transfer return cmd; } + /** * Cleanup the state, only defined to respect the API. * @@ -287,6 +289,7 @@ check_bank_empty_cleanup return; } + /** * Run the command. * diff --git a/src/lib/testing_api_cmd_batch.c b/src/lib/testing_api_cmd_batch.c index f5fbc8117..84bd51b69 100644 --- a/src/lib/testing_api_cmd_batch.c +++ b/src/lib/testing_api_cmd_batch.c @@ -136,6 +136,7 @@ batch_traits (void *cls, index); } + /** * Create a "batch" command. Such command takes a * end_CMD-terminated array of CMDs and executed them. @@ -179,6 +180,7 @@ TALER_TESTING_cmd_batch (const char *label, return cmd; } + /** * Advance internal pointer to next command. * @@ -200,7 +202,6 @@ TALER_TESTING_cmd_batch_next } - /** * Test if this command is a batch command. * diff --git a/src/lib/testing_api_cmd_check_keys.c b/src/lib/testing_api_cmd_check_keys.c index a0b61c1b0..b4db78697 100644 --- a/src/lib/testing_api_cmd_check_keys.c +++ b/src/lib/testing_api_cmd_check_keys.c @@ -141,8 +141,7 @@ check_keys_run (void *cls, * a "maybe" basis, so it can get quite hard to track /keys * request. Rather, this CMD should just check if /keys was * requested AT LEAST n times before going ahead with checks. - */ - if (is->key_generation > cks->generation) + */if (is->key_generation > cks->generation) { /* We got /keys too often, strange. Fatal. May theoretically happen if somehow we were really unlucky and /keys expired @@ -237,6 +236,7 @@ TALER_TESTING_cmd_check_keys_with_last_denom return cmd; } + /** * Make a "check keys" command. This type of command * checks whether the number of denomination keys from @@ -321,7 +321,6 @@ TALER_TESTING_cmd_check_keys_with_now } - /** * Make a "check keys" command that forcedly does NOT cherry pick; * just redownload the whole /keys. Then checks whether the number diff --git a/src/lib/testing_api_cmd_deposit.c b/src/lib/testing_api_cmd_deposit.c index 84fba8f31..fcc9a6375 100644 --- a/src/lib/testing_api_cmd_deposit.c +++ b/src/lib/testing_api_cmd_deposit.c @@ -485,6 +485,7 @@ deposit_traits (void *cls, index); } + /** * Create a "deposit" command. * diff --git a/src/lib/testing_api_cmd_exec_aggregator.c b/src/lib/testing_api_cmd_exec_aggregator.c index c51d44989..7046f162a 100644 --- a/src/lib/testing_api_cmd_exec_aggregator.c +++ b/src/lib/testing_api_cmd_exec_aggregator.c @@ -163,4 +163,5 @@ TALER_TESTING_cmd_exec_aggregator (const char *label, return cmd; } + /* end of testing_api_cmd_exec_aggregator.c */ diff --git a/src/lib/testing_api_cmd_exec_auditor-sign.c b/src/lib/testing_api_cmd_exec_auditor-sign.c index 1a722ad2f..a37638821 100644 --- a/src/lib/testing_api_cmd_exec_auditor-sign.c +++ b/src/lib/testing_api_cmd_exec_auditor-sign.c @@ -229,4 +229,5 @@ TALER_TESTING_cmd_exec_auditor_sign (const char *label, } } + /* end of testing_api_cmd_exec_auditor-sign.c */ diff --git a/src/lib/testing_api_cmd_exec_keyup.c b/src/lib/testing_api_cmd_exec_keyup.c index 65f23693e..89b9d597e 100644 --- a/src/lib/testing_api_cmd_exec_keyup.c +++ b/src/lib/testing_api_cmd_exec_keyup.c @@ -201,6 +201,7 @@ TALER_TESTING_cmd_exec_keyup_with_now return cmd; } + /** * Make the "keyup" CMD. * @@ -229,4 +230,5 @@ TALER_TESTING_cmd_exec_keyup (const char *label, return cmd; } + /* end of testing_api_cmd_exec_keyup.c */ diff --git a/src/lib/testing_api_cmd_exec_wirewatch.c b/src/lib/testing_api_cmd_exec_wirewatch.c index c9ca42549..c5a5c2f36 100644 --- a/src/lib/testing_api_cmd_exec_wirewatch.c +++ b/src/lib/testing_api_cmd_exec_wirewatch.c @@ -31,7 +31,6 @@ #include "taler_testing_lib.h" - /** * State for a "wirewatch" CMD. */ @@ -165,4 +164,5 @@ TALER_TESTING_cmd_exec_wirewatch (const char *label, return cmd; } + /* end of testing_api_cmd_exec_wirewatch.c */ diff --git a/src/lib/testing_api_cmd_fakebank_transfer.c b/src/lib/testing_api_cmd_fakebank_transfer.c index 729536b56..81378238c 100644 --- a/src/lib/testing_api_cmd_fakebank_transfer.c +++ b/src/lib/testing_api_cmd_fakebank_transfer.c @@ -417,6 +417,7 @@ fakebank_transfer_cleanup (void *cls, GNUNET_free (fts); } + /** * Offer internal data from a "fakebank transfer" CMD to other * commands. @@ -766,4 +767,5 @@ TALER_TESTING_cmd_fakebank_transfer_retry (struct TALER_TESTING_Command cmd) return cmd; } + /* end of testing_api_cmd_fakebank_transfer.c */ diff --git a/src/lib/testing_api_cmd_payback.c b/src/lib/testing_api_cmd_payback.c index c69d1d089..1591b64ab 100644 --- a/src/lib/testing_api_cmd_payback.c +++ b/src/lib/testing_api_cmd_payback.c @@ -485,6 +485,7 @@ revoke_traits (void *cls, index); } + /** * Run the "revoke" command. The core of the function * is to call the "keyup" utility passing it the base32 diff --git a/src/lib/testing_api_cmd_refresh.c b/src/lib/testing_api_cmd_refresh.c index 5d1472a01..bf0f4ea19 100644 --- a/src/lib/testing_api_cmd_refresh.c +++ b/src/lib/testing_api_cmd_refresh.c @@ -884,7 +884,8 @@ refresh_melt_run (void *cls, rms->noreveal_index = UINT16_MAX; for (num_fresh_coins = 0; NULL != melt_fresh_amounts[num_fresh_coins]; - num_fresh_coins++); + num_fresh_coins++) + ; rms->num_fresh_coins = num_fresh_coins; rms->fresh_pks = GNUNET_new_array (num_fresh_coins, diff --git a/src/lib/testing_api_cmd_sleep.c b/src/lib/testing_api_cmd_sleep.c index 4d270331e..f3235b8e8 100644 --- a/src/lib/testing_api_cmd_sleep.c +++ b/src/lib/testing_api_cmd_sleep.c @@ -224,4 +224,5 @@ TALER_TESTING_cmd_wait_service (const char *label, return cmd; } + /* end of testing_api_cmd_sleep.c */ diff --git a/src/lib/testing_api_cmd_status.c b/src/lib/testing_api_cmd_status.c index 0dcea1233..398221a10 100644 --- a/src/lib/testing_api_cmd_status.c +++ b/src/lib/testing_api_cmd_status.c @@ -126,9 +126,7 @@ reserve_status_cb * "reserve history update trait" which returns information about * how the command changes the history (provided only by commands * that change reserve balances)? - */ - - TALER_TESTING_interpreter_next (ss->is); + */TALER_TESTING_interpreter_next (ss->is); } diff --git a/src/lib/testing_api_cmd_track.c b/src/lib/testing_api_cmd_track.c index e32d24ce2..41c6be171 100644 --- a/src/lib/testing_api_cmd_track.c +++ b/src/lib/testing_api_cmd_track.c @@ -589,9 +589,7 @@ track_transfer_cb * or any operation that could provide wire-details. (2) * Total amount for this transfer matches the one from any * referenced command that could provide one. - */ - - if (NULL != tts->wire_details_reference) + */if (NULL != tts->wire_details_reference) { const struct TALER_TESTING_Command *wire_details_cmd; const json_t *wire_details; @@ -674,6 +672,7 @@ track_transfer_cb TALER_TESTING_interpreter_next (is); } + /** * Run the command. * @@ -727,6 +726,7 @@ track_transfer_run (void *cls, GNUNET_assert (NULL != tts->tth); } + /** * Make a "track transfer" CMD where no "expected"-arguments, * except the HTTP response code, are given. The best use case @@ -769,6 +769,7 @@ TALER_TESTING_cmd_track_transfer_empty return cmd; } + /** * Make a "track transfer" command, specifying which amount and * wire fee are expected. @@ -814,4 +815,5 @@ TALER_TESTING_cmd_track_transfer return cmd; } + /* end of testing_api_cmd_track.c */ diff --git a/src/lib/testing_api_cmd_wire.c b/src/lib/testing_api_cmd_wire.c index e2a8d7f1f..950ed62f7 100644 --- a/src/lib/testing_api_cmd_wire.c +++ b/src/lib/testing_api_cmd_wire.c @@ -201,6 +201,7 @@ wire_cleanup (void *cls, GNUNET_free (ws); } + /** * Create a "wire" command. * diff --git a/src/lib/testing_api_cmd_withdraw.c b/src/lib/testing_api_cmd_withdraw.c index 92b587b5a..550ea9577 100644 --- a/src/lib/testing_api_cmd_withdraw.c +++ b/src/lib/testing_api_cmd_withdraw.c @@ -32,7 +32,6 @@ #include "backoff.h" - /** * State for a "withdraw" CMD. */ diff --git a/src/lib/testing_api_helpers.c b/src/lib/testing_api_helpers.c index a7b45e600..2e1fb2d06 100644 --- a/src/lib/testing_api_helpers.c +++ b/src/lib/testing_api_helpers.c @@ -1077,4 +1077,5 @@ TALER_TESTING_prepare_fakebank (const char *config_filename, return fakebank_url; } + /* end of testing_api_helpers.c */ diff --git a/src/lib/testing_api_loop.c b/src/lib/testing_api_loop.c index 38139de25..fa723eb6e 100644 --- a/src/lib/testing_api_loop.c +++ b/src/lib/testing_api_loop.c @@ -491,7 +491,8 @@ TALER_TESTING_run2 (struct TALER_TESTING_Interpreter *is, is->timeout_task = NULL; } /* get the number of commands */ - for (i = 0; NULL != commands[i].label; i++); + for (i = 0; NULL != commands[i].label; i++) + ; is->commands = GNUNET_new_array (i + 1, struct TALER_TESTING_Command); memcpy (is->commands, @@ -831,4 +832,5 @@ TALER_TESTING_setup (TALER_TESTING_Main main_cb, return is.result; } + /* end of testing_api_loop.c */ diff --git a/src/lib/testing_api_trait_blinding_key.c b/src/lib/testing_api_trait_blinding_key.c index b723e5cfc..e6b9e485d 100644 --- a/src/lib/testing_api_trait_blinding_key.c +++ b/src/lib/testing_api_trait_blinding_key.c @@ -54,7 +54,6 @@ TALER_TESTING_get_trait_blinding_key } - /** * Offer blinding key. * @@ -77,4 +76,5 @@ TALER_TESTING_make_trait_blinding_key return ret; } + /* end of testing_api_trait_blinding_key.c */ diff --git a/src/lib/testing_api_trait_cmd.c b/src/lib/testing_api_trait_cmd.c index faf8799be..9c25fd886 100644 --- a/src/lib/testing_api_trait_cmd.c +++ b/src/lib/testing_api_trait_cmd.c @@ -79,4 +79,5 @@ TALER_TESTING_make_trait_cmd return ret; } + /* end of testing_api_trait_cmd.c */ diff --git a/src/lib/testing_api_trait_coin_priv.c b/src/lib/testing_api_trait_coin_priv.c index 85331de7e..b7ca1b8f6 100644 --- a/src/lib/testing_api_trait_coin_priv.c +++ b/src/lib/testing_api_trait_coin_priv.c @@ -75,4 +75,5 @@ TALER_TESTING_make_trait_coin_priv return ret; } + /* end of testing_api_trait_coin_priv.c */ diff --git a/src/lib/testing_api_trait_denom_pub.c b/src/lib/testing_api_trait_denom_pub.c index b11c459ee..3bb3182a2 100644 --- a/src/lib/testing_api_trait_denom_pub.c +++ b/src/lib/testing_api_trait_denom_pub.c @@ -75,4 +75,5 @@ TALER_TESTING_make_trait_denom_pub return ret; } + /* end of testing_api_trait_denom_pub.c */ diff --git a/src/lib/testing_api_trait_exchange_pub.c b/src/lib/testing_api_trait_exchange_pub.c index 711d56f0c..3e3adb75c 100644 --- a/src/lib/testing_api_trait_exchange_pub.c +++ b/src/lib/testing_api_trait_exchange_pub.c @@ -74,4 +74,5 @@ TALER_TESTING_make_trait_exchange_pub return ret; } + /* end of testing_api_trait_exchange_pub.c */ diff --git a/src/lib/testing_api_trait_exchange_sig.c b/src/lib/testing_api_trait_exchange_sig.c index c7ed29b2c..4b2672d74 100644 --- a/src/lib/testing_api_trait_exchange_sig.c +++ b/src/lib/testing_api_trait_exchange_sig.c @@ -74,4 +74,5 @@ TALER_TESTING_make_trait_exchange_sig return ret; } + /* end of testing_api_trait_exchange_sig.c */ diff --git a/src/lib/testing_api_trait_fresh_coin.c b/src/lib/testing_api_trait_fresh_coin.c index 92d6d4b9c..3c0ee1df1 100644 --- a/src/lib/testing_api_trait_fresh_coin.c +++ b/src/lib/testing_api_trait_fresh_coin.c @@ -76,4 +76,5 @@ TALER_TESTING_make_trait_fresh_coins return ret; } + /* end of testing_api_trait_fresh_coin.c */ diff --git a/src/lib/testing_api_trait_json.c b/src/lib/testing_api_trait_json.c index 5307dc370..b3370162b 100644 --- a/src/lib/testing_api_trait_json.c +++ b/src/lib/testing_api_trait_json.c @@ -74,6 +74,7 @@ TALER_TESTING_make_trait_exchange_keys return ret; } + /** * Obtain wire details from @a cmd. * @@ -119,4 +120,5 @@ TALER_TESTING_make_trait_wire_details return ret; } + /* end of testing_api_trait_json.c */ diff --git a/src/lib/testing_api_trait_key_peer.c b/src/lib/testing_api_trait_key_peer.c index f26169eb6..e5d1e82f2 100644 --- a/src/lib/testing_api_trait_key_peer.c +++ b/src/lib/testing_api_trait_key_peer.c @@ -54,6 +54,7 @@ TALER_TESTING_get_trait_peer_key index); } + /** * Offer private key, typically done when CMD_1 needs it to * sign a request. @@ -100,6 +101,7 @@ TALER_TESTING_get_trait_peer_key_pub index); } + /** * Offer public key. * diff --git a/src/lib/testing_api_trait_number.c b/src/lib/testing_api_trait_number.c index b2c545457..ff7741650 100644 --- a/src/lib/testing_api_trait_number.c +++ b/src/lib/testing_api_trait_number.c @@ -73,6 +73,7 @@ TALER_TESTING_make_trait_uint return ret; } + /** * Obtain a "number" value from @a cmd, 64-bit version. * @@ -94,6 +95,7 @@ TALER_TESTING_get_trait_uint64 index); } + /** * Offer number trait, 64-bit version. * @@ -113,4 +115,5 @@ TALER_TESTING_make_trait_uint64 return ret; } + /* end of testing_api_trait_number.c */ diff --git a/src/lib/testing_api_trait_process.c b/src/lib/testing_api_trait_process.c index a35314ef3..5145ff5d8 100644 --- a/src/lib/testing_api_trait_process.c +++ b/src/lib/testing_api_trait_process.c @@ -80,4 +80,5 @@ TALER_TESTING_make_trait_process return ret; } + /* end of testing_api_trait_process.c */ diff --git a/src/lib/testing_api_trait_reserve_priv.c b/src/lib/testing_api_trait_reserve_priv.c index b920c43d9..8a60687fc 100644 --- a/src/lib/testing_api_trait_reserve_priv.c +++ b/src/lib/testing_api_trait_reserve_priv.c @@ -73,4 +73,5 @@ TALER_TESTING_make_trait_reserve_priv return ret; } + /* end of testing_api_trait_reserve_priv.c */ diff --git a/src/lib/testing_api_trait_string.c b/src/lib/testing_api_trait_string.c index 606c6e0b6..8d3d5df04 100644 --- a/src/lib/testing_api_trait_string.c +++ b/src/lib/testing_api_trait_string.c @@ -57,6 +57,7 @@ TALER_TESTING_get_trait_contract_terms index); } + /** * Offer contract terms. * @@ -100,6 +101,7 @@ TALER_TESTING_get_trait_transfer_subject index); } + /** * Offer transfer subject. * @@ -145,6 +147,7 @@ TALER_TESTING_get_trait_amount index); } + /** * Offer amount in a trait. * @@ -190,6 +193,7 @@ TALER_TESTING_get_trait_url index); } + /** * Offer url in a trait. * @@ -235,6 +239,7 @@ TALER_TESTING_get_trait_order_id index); } + /** * Offer order id in a trait. * @@ -257,6 +262,7 @@ TALER_TESTING_make_trait_order_id return ret; } + /** * Obtain the reference to a "reject" CMD. Usually offered * by _rejected_ bank transfers. @@ -280,6 +286,7 @@ TALER_TESTING_get_trait_rejected index); } + /** * Offer a "reject" CMD reference. * @@ -302,4 +309,5 @@ TALER_TESTING_make_trait_rejected return ret; } + /* end of testing_api_trait_string.c */ diff --git a/src/lib/testing_api_trait_time.c b/src/lib/testing_api_trait_time.c index 0cd71ad94..316527d75 100644 --- a/src/lib/testing_api_trait_time.c +++ b/src/lib/testing_api_trait_time.c @@ -52,6 +52,7 @@ TALER_TESTING_get_trait_absolute_time index); } + /** * Offer a absolute time. * @@ -72,4 +73,5 @@ TALER_TESTING_make_trait_absolute_time return ret; } + /* end of testing_api_trait_time.c */ diff --git a/src/lib/testing_api_trait_wtid.c b/src/lib/testing_api_trait_wtid.c index 1353327af..81690f036 100644 --- a/src/lib/testing_api_trait_wtid.c +++ b/src/lib/testing_api_trait_wtid.c @@ -73,4 +73,5 @@ TALER_TESTING_make_trait_wtid return ret; } + /* end of testing_api_trait_number.c */ diff --git a/src/lib/testing_api_traits.c b/src/lib/testing_api_traits.c index 45e7668ee..703e14c8a 100644 --- a/src/lib/testing_api_traits.c +++ b/src/lib/testing_api_traits.c @@ -46,6 +46,7 @@ TALER_TESTING_trait_end () return end; } + /** * Pick the chosen trait from the traits array. * @@ -77,4 +78,5 @@ TALER_TESTING_get_trait (const struct TALER_TESTING_Trait *traits, return GNUNET_SYSERR; } + /* end of testing_api_traits.c */ diff --git a/src/lib/testing_auditor_api_cmd_exchanges.c b/src/lib/testing_auditor_api_cmd_exchanges.c index 014441761..9cc07553d 100644 --- a/src/lib/testing_auditor_api_cmd_exchanges.c +++ b/src/lib/testing_auditor_api_cmd_exchanges.c @@ -335,6 +335,7 @@ TALER_TESTING_cmd_exchanges_with_url return cmd; } + /** * Modify an exchanges command to enable retries when we get * transient errors from the auditor. diff --git a/src/lib/testing_auditor_api_cmd_exec_auditor.c b/src/lib/testing_auditor_api_cmd_exec_auditor.c index afe9d38fc..cff234691 100644 --- a/src/lib/testing_auditor_api_cmd_exec_auditor.c +++ b/src/lib/testing_auditor_api_cmd_exec_auditor.c @@ -159,4 +159,5 @@ TALER_TESTING_cmd_exec_auditor (const char *label, return cmd; } + /* end of testing_auditor_api_cmd_exec_auditor.c */ diff --git a/src/lib/testing_auditor_api_cmd_exec_auditor_dbinit.c b/src/lib/testing_auditor_api_cmd_exec_auditor_dbinit.c index 09771660c..3b7e3aa0b 100644 --- a/src/lib/testing_auditor_api_cmd_exec_auditor_dbinit.c +++ b/src/lib/testing_auditor_api_cmd_exec_auditor_dbinit.c @@ -160,4 +160,5 @@ TALER_TESTING_cmd_exec_auditor_dbinit (const char *label, return cmd; } + /* end of testing_auditor_api_cmd_exec_auditor_dbinit.c */ diff --git a/src/lib/testing_auditor_api_cmd_exec_wire_auditor.c b/src/lib/testing_auditor_api_cmd_exec_wire_auditor.c index 8371f9690..744420d3f 100644 --- a/src/lib/testing_auditor_api_cmd_exec_wire_auditor.c +++ b/src/lib/testing_auditor_api_cmd_exec_wire_auditor.c @@ -159,4 +159,5 @@ TALER_TESTING_cmd_exec_wire_auditor (const char *label, return cmd; } + /* end of testing_auditor_api_cmd_exec_wire_auditor.c */ diff --git a/src/lib/testing_auditor_api_helpers.c b/src/lib/testing_auditor_api_helpers.c index 59b0e05de..cf15131da 100644 --- a/src/lib/testing_auditor_api_helpers.c +++ b/src/lib/testing_auditor_api_helpers.c @@ -70,6 +70,7 @@ cleanup_auditor (void *cls) GNUNET_free (cc); } + /** * Closure for #auditor_main_wrapper() */ @@ -122,6 +123,7 @@ auditor_version_cb is->auditor_working = GNUNET_YES; } + /** * Setup the @a is 'auditor' member before running the main test loop. * @@ -227,5 +229,4 @@ TALER_TESTING_AUDITOR_setup (TALER_TESTING_Main main_cb, } - /* end of testing_auditor_api_helpers.c */ |