donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 6335f9b276382b915b0cc7edc2d59482864851d9
parent 6f5f6d6a911ce99b8d533f5901af7dfdf1ce4119
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Mon, 20 Jul 2026 00:21:45 +0200

always use uint32_t for year

Diffstat:
Msrc/include/donau_testing_lib.h | 8++++----
Msrc/testing/testing_api_cmd_donation_statement_get.c | 2+-
Msrc/testing/testing_api_cmd_issue_receipts.c | 6+++---
Msrc/testing/testing_api_cmd_submit_receipts.c | 5++---
4 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/include/donau_testing_lib.h b/src/include/donau_testing_lib.h @@ -145,8 +145,8 @@ TALER_TESTING_cmd_charities_get (const char *label, struct TALER_TESTING_Command TALER_TESTING_cmd_issue_receipts (const char *label, const char *charity_reference, - const bool uses_cs, - const uint64_t year, + bool uses_cs, + uint32_t year, const char *donor_tax_id, const char *salt, const char *issue_amount, @@ -165,7 +165,7 @@ TALER_TESTING_cmd_issue_receipts (const char *label, struct TALER_TESTING_Command TALER_TESTING_cmd_submit_receipts (const char *label, const char *issue_receipt_reference, - const uint64_t year, + uint32_t year, unsigned int expected_response_code); @@ -179,7 +179,7 @@ TALER_TESTING_cmd_submit_receipts (const char *label, */ struct TALER_TESTING_Command TALER_TESTING_cmd_donation_statement_get (const char *label, - uint64_t year, + uint32_t year, unsigned int expected_response_code); diff --git a/src/testing/testing_api_cmd_donation_statement_get.c b/src/testing/testing_api_cmd_donation_statement_get.c @@ -223,7 +223,7 @@ status_cleanup (void *cls, struct TALER_TESTING_Command TALER_TESTING_cmd_donation_statement_get (const char *label, - uint64_t year, + uint32_t year, unsigned int expected_response_code) { struct StatusState *ss; diff --git a/src/testing/testing_api_cmd_issue_receipts.c b/src/testing/testing_api_cmd_issue_receipts.c @@ -74,7 +74,7 @@ struct StatusState /** * charity id */ - unsigned long long year; + uint32_t year; /** * Private key of the charity, for signature. @@ -617,8 +617,8 @@ issue_receipts_traits (void *cls, struct TALER_TESTING_Command TALER_TESTING_cmd_issue_receipts (const char *label, const char *charity_reference, - const bool uses_cs, - const uint64_t year, + bool uses_cs, + uint32_t year, const char *donor_tax_id, const char *salt, const char *issue_amount, diff --git a/src/testing/testing_api_cmd_submit_receipts.c b/src/testing/testing_api_cmd_submit_receipts.c @@ -58,7 +58,7 @@ struct StatusState /** * corresponding year */ - unsigned long long year; + uint32_t year; /** * number of donation receipts. @@ -217,13 +217,12 @@ cleanup (void *cls, struct TALER_TESTING_Command TALER_TESTING_cmd_submit_receipts (const char *label, const char *issue_receipt_reference, - const uint64_t year, + uint32_t year, unsigned int expected_response_code) { struct StatusState *ss; ss = GNUNET_new (struct StatusState); - ss->year = year; ss->expected_response_code = expected_response_code; ss->issue_receipt_reference = issue_receipt_reference;