donau

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

commit 312fb5d44da21ce1dd2d14ea7f383a6638fda6b5
parent a21270e3b3bc38c0b46be31086324eaffde827a6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 23 Sep 2025 11:04:16 +0200

fix compiler warnings in test_donaudb.c

Diffstat:
Msrc/donaudb/test_donaudb.c | 20++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)

diff --git a/src/donaudb/test_donaudb.c b/src/donaudb/test_donaudb.c @@ -172,12 +172,11 @@ run (void *cls) struct DONAU_DonationReceiptHashP h_receipt; struct TALER_Amount amount_receipts; bool smaller_than_max_per_year; - // struct DONAUDB_IssuedReceiptsMetaData ir_meta; - - // Submitted receipts information - // struct DONAU_HashDonorTaxId h_donor_tax_id; - // size_t num_dr = 1; - // struct DONAU_DonationReceipt donation_receipts[num_dr]; + struct TALER_DenominationPrivateKey denom_priv; + struct TALER_DenominationPublicKey denom_pub; + struct DONAU_DonationUnitPublicKey du_pub; + struct GNUNET_CRYPTO_BlindedMessage *rp; + struct GNUNET_CRYPTO_RsaBlindedMessage *rsa; if (NULL == (plugin = DONAUDB_plugin_load (cfg))) @@ -247,17 +246,12 @@ run (void *cls) /* test insert donation unit */ RND_BLK (&h_donation_unit_pub); - struct TALER_DenominationPrivateKey denom_priv; - struct TALER_DenominationPublicKey denom_pub; GNUNET_assert (GNUNET_OK == TALER_denom_priv_create (&denom_priv, &denom_pub, GNUNET_CRYPTO_BSA_RSA, RSA_KEY_SIZE)); - struct DONAU_DonationUnitPublicKey du_pub = { - .bsign_pub_key = denom_pub.bsign_pub_key - }; - + du_pub.bsign_pub_key = denom_pub.bsign_pub_key; validity_year = 2024; GNUNET_assert (GNUNET_OK == TALER_string_to_amount (CURRENCY ":1.000010", @@ -303,8 +297,6 @@ run (void *cls) NULL)); /* test insert issued receipt */ - struct GNUNET_CRYPTO_BlindedMessage *rp; - struct GNUNET_CRYPTO_RsaBlindedMessage *rsa; rp = GNUNET_new (struct GNUNET_CRYPTO_BlindedMessage); rp->cipher = GNUNET_CRYPTO_BSA_RSA; rp->rc = 1;