From 33a28efef74d1db0c08a8e9e3facf3656b4b29e1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 31 Jul 2021 21:48:36 +0200 Subject: -more json_pack fixes --- src/auditor/taler-helper-auditor-aggregation.c | 10 +++++----- src/auditor/taler-helper-auditor-coins.c | 4 ++-- src/auditor/taler-helper-auditor-deposits.c | 14 +++++++------- src/auditor/taler-helper-auditor-reserves.c | 6 +++--- 4 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src/auditor') diff --git a/src/auditor/taler-helper-auditor-aggregation.c b/src/auditor/taler-helper-auditor-aggregation.c index 4990ae405..c6398be2f 100644 --- a/src/auditor/taler-helper-auditor-aggregation.c +++ b/src/auditor/taler-helper-auditor-aggregation.c @@ -127,7 +127,7 @@ static int internal_checks; * respect to calculations involving amounts. * * @param operation what operation had the inconsistency - * @param rowid affected row, UINT64_MAX if row is missing + * @param rowid affected row, 0 if row is missing * @param exchange amount calculated by exchange * @param auditor amount calculated by auditor * @param profitable 1 if @a exchange being larger than @a auditor is @@ -254,7 +254,7 @@ report_coin_arithmetic_inconsistency ( * Report a (serious) inconsistency in the exchange's database. * * @param table affected table - * @param rowid affected row, UINT64_MAX if row is missing + * @param rowid affected row, 0 if row is missing * @param diagnostic message explaining the problem */ static void @@ -499,7 +499,7 @@ check_transaction_history_for_deposit ( { /* Disagreement in fee structure between auditor and exchange DB! */ report_amount_arithmetic_inconsistency ("deposit fee", - UINT64_MAX, + 0, fee_claimed, &fee_expected, 1); @@ -524,7 +524,7 @@ check_transaction_history_for_deposit ( { /* Disagreement in fee structure between exchange and auditor */ report_amount_arithmetic_inconsistency ("melt fee", - UINT64_MAX, + 0, fee_claimed, &fee_expected, 1); @@ -568,7 +568,7 @@ check_transaction_history_for_deposit ( { /* Disagreement in fee structure between exchange and auditor! */ report_amount_arithmetic_inconsistency ("refund fee", - UINT64_MAX, + 0, fee_claimed, &fee_expected, 1); diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c index 40b68c4ad..b3050542d 100644 --- a/src/auditor/taler-helper-auditor-coins.c +++ b/src/auditor/taler-helper-auditor-coins.c @@ -364,7 +364,7 @@ report_emergency_by_count ( * respect to calculations involving amounts. * * @param operation what operation had the inconsistency - * @param rowid affected row, UINT64_MAX if row is missing + * @param rowid affected row, 0 if row is missing * @param exchange amount calculated by exchange * @param auditor amount calculated by auditor * @param profitable 1 if @a exchange being larger than @a auditor is @@ -429,7 +429,7 @@ report_amount_arithmetic_inconsistency ( * Report a (serious) inconsistency in the exchange's database. * * @param table affected table - * @param rowid affected row, UINT64_MAX if row is missing + * @param rowid affected row, 0 if row is missing * @param diagnostic message explaining the problem */ static void diff --git a/src/auditor/taler-helper-auditor-deposits.c b/src/auditor/taler-helper-auditor-deposits.c index 17b32f25e..c9c8bf662 100644 --- a/src/auditor/taler-helper-auditor-deposits.c +++ b/src/auditor/taler-helper-auditor-deposits.c @@ -216,13 +216,13 @@ analyze_deposit_confirmations (void *cls) dcc.qs = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT; dcc.missed_count = 0LLU; dcc.first_missed_coin_serial = UINT64_MAX; - qsx = TALER_ARL_adb->get_deposit_confirmations (TALER_ARL_adb->cls, - TALER_ARL_asession, - &TALER_ARL_master_pub, - ppdc. - last_deposit_confirmation_serial_id, - &test_dc, - &dcc); + qsx = TALER_ARL_adb->get_deposit_confirmations ( + TALER_ARL_adb->cls, + TALER_ARL_asession, + &TALER_ARL_master_pub, + ppdc.last_deposit_confirmation_serial_id, + &test_dc, + &dcc); if (0 > qsx) { GNUNET_break (GNUNET_DB_STATUS_SOFT_ERROR == qsx); diff --git a/src/auditor/taler-helper-auditor-reserves.c b/src/auditor/taler-helper-auditor-reserves.c index 22d7f5c27..efeaa4f63 100644 --- a/src/auditor/taler-helper-auditor-reserves.c +++ b/src/auditor/taler-helper-auditor-reserves.c @@ -155,7 +155,7 @@ static int internal_checks; * respect to calculations involving amounts. * * @param operation what operation had the inconsistency - * @param rowid affected row, UINT64_MAX if row is missing + * @param rowid affected row, 0 if row is missing * @param exchange amount calculated by exchange * @param auditor amount calculated by auditor * @param profitable 1 if @a exchange being larger than @a auditor is @@ -218,7 +218,7 @@ report_amount_arithmetic_inconsistency ( * Report a (serious) inconsistency in the exchange's database. * * @param table affected table - * @param rowid affected row, UINT64_MAX if row is missing + * @param rowid affected row, 0 if row is missing * @param diagnostic message explaining the problem */ static void @@ -1231,7 +1231,7 @@ verify_reserve_balance (void *cls, to be withdrawn more than it was IN TOTAL ever given (exchange balance went negative!). Woopsie. Calculate how badly it went and log. */ report_amount_arithmetic_inconsistency ("global escrow balance", - UINT64_MAX, + 0, &total_escrow_balance, /* what we had */ &rs->total_out, /* what we needed */ 0 /* specific profit/loss does not apply to the total summary */); -- cgit v1.2.3