summaryrefslogtreecommitdiff
path: root/src/lib/testing_api_cmd_bank_history_debit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-15 22:47:20 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-15 22:47:20 +0100
commit4c5c63e9b921158bc4bd774d575f5fb562c116c5 (patch)
tree78b23b58512354b2378669bef5ec19c1e8633fb4 /src/lib/testing_api_cmd_bank_history_debit.c
parenta5395c20659ff1e9c749b6349d6a8d41e6452dd1 (diff)
downloadexchange-4c5c63e9b921158bc4bd774d575f5fb562c116c5.tar.gz
exchange-4c5c63e9b921158bc4bd774d575f5fb562c116c5.tar.bz2
exchange-4c5c63e9b921158bc4bd774d575f5fb562c116c5.zip
simplify credit history computation
Diffstat (limited to 'src/lib/testing_api_cmd_bank_history_debit.c')
-rw-r--r--src/lib/testing_api_cmd_bank_history_debit.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/testing_api_cmd_bank_history_debit.c b/src/lib/testing_api_cmd_bank_history_debit.c
index 6ac54e2ca..a45c6da89 100644
--- a/src/lib/testing_api_cmd_bank_history_debit.c
+++ b/src/lib/testing_api_cmd_bank_history_debit.c
@@ -149,9 +149,9 @@ print_expected (struct History *h,
unsigned int off)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Transaction history missmatch at position %u/%llu\n",
+ "Transaction history missmatch at position %u/%u\n",
off,
- (unsigned long long) h_len);
+ h_len);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Expected history:\n");
for (unsigned int i = 0; i<h_len; i++)
@@ -281,7 +281,7 @@ build_history (struct TALER_TESTING_Interpreter *is,
(*row_id_start == *row_id) &&
(GNUNET_NO == ok) )
{
- /* Until here nothing counted */
+ /* Until here, nothing counted. */
ok = GNUNET_YES;
continue;
}
@@ -319,11 +319,7 @@ build_history (struct TALER_TESTING_Interpreter *is,
total,
pos);
if (0 == pos)
- {
- TALER_LOG_DEBUG ("Empty history computed\n");
- *rh = NULL;
- return 0;
- }
+ TALER_LOG_DEBUG ("Empty debit history computed\n");
*rh = h;
return total;
}