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/bank-lib/testing_api_cmd_history.c | |
parent | 325aaddbd6612c3baa56d01f6777faf77d082588 (diff) | |
download | exchange-385b3e77dfa1b6bbaee5d0ec9da9bcbd69e91b70.tar.xz |
tighten formatting rules
Diffstat (limited to 'src/bank-lib/testing_api_cmd_history.c')
-rw-r--r-- | src/bank-lib/testing_api_cmd_history.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/bank-lib/testing_api_cmd_history.c b/src/bank-lib/testing_api_cmd_history.c index ca8613141..0b5184ad8 100644 --- a/src/bank-lib/testing_api_cmd_history.c +++ b/src/bank-lib/testing_api_cmd_history.c @@ -34,7 +34,6 @@ #include "taler_fakebank_lib.h" - /** * State for a "history" CMD. */ @@ -267,7 +266,6 @@ print_expected (struct History *h, } - /** * Tell if the current item is beyond the allowed limit. * @@ -338,8 +336,7 @@ build_history (struct TALER_TESTING_Interpreter *is, * @var turns GNUNET_YES whenever either no 'start' value was * given for the history query, or the given value is found * in the list of all the CMDs. - */ - int ok; + */int ok; const uint64_t *row_id_start = NULL; if (NULL != hs->start_row_reference) @@ -399,8 +396,7 @@ build_history (struct TALER_TESTING_Interpreter *is, * The following command allows us to skip over those CMDs * that do not offer a "row_id" trait. Such skipped CMDs are * not interesting for building a history. - */ - if (GNUNET_OK != TALER_TESTING_get_trait_uint64 (pos, + */if (GNUNET_OK != TALER_TESTING_get_trait_uint64 (pos, 0, &row_id)) continue; @@ -533,8 +529,7 @@ build_history (struct TALER_TESTING_Interpreter *is, * Warning: this zeroing is superfluous, as * total doesn't get incremented if 'start' * was given and couldn't be found. - */ - total = 0; + */total = 0; ok = GNUNET_YES; continue; } @@ -598,8 +593,7 @@ build_history (struct TALER_TESTING_Interpreter *is, * _both_ the credit and the debit roles, but _only if_ * the audit goes on both directions.. This needs more * explaination! - */ - if ( ( (0 != (hs->direction & TALER_BANK_DIRECTION_CREDIT)) && + */if ( ( (0 != (hs->direction & TALER_BANK_DIRECTION_CREDIT)) && (hs->account_no == *credit_account_no)) && ( (0 != (hs->direction & TALER_BANK_DIRECTION_DEBIT)) && (hs->account_no == *debit_account_no)) ) @@ -775,6 +769,7 @@ check_result (struct TALER_TESTING_Interpreter *is, return GNUNET_OK; } + /** * This callback will (1) check that the HTTP response code * is acceptable and (2) that the history is consistent. The @@ -1191,4 +1186,5 @@ TALER_TESTING_cmd_bank_history_range_with_dates } } + /* end of testing_api_cmd_history.c */ |