commit f6ba3d6d65333e26da098f6729af5b312b89cf3f
parent 2e08174234644ff8b929782d508c4d73e5090d14
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date: Wed, 6 Aug 2025 23:52:32 +0200
charity_id to uint64_t
Diffstat:
6 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/include/donau_testing_lib.h b/src/include/donau_testing_lib.h
@@ -204,7 +204,7 @@ TALER_TESTING_get_donau_url (
#define DONAU_TESTING_SIMPLE_TRAITS(op) \
op (charity_priv, const struct DONAU_CharityPrivateKeyP) \
op (charity_pub, const struct DONAU_CharityPublicKeyP) \
- op (charity_id, const unsigned long long) \
+ op (charity_id, uint64_t) \
op (donau_url, const char) \
op (donau_keys, struct DONAU_Keys) \
op (donor_salt, const char) \
diff --git a/src/lib/donau_api_handle.c b/src/lib/donau_api_handle.c
@@ -70,7 +70,7 @@
* how long do we assume the reply to be valid at least?
*/
#define MINIMUM_EXPIRATION GNUNET_TIME_relative_multiply ( \
- GNUNET_TIME_UNIT_MINUTES, 2)
+ GNUNET_TIME_UNIT_MINUTES, 2)
/**
@@ -120,9 +120,9 @@ struct DONAU_GetKeysHandle
#define EXITIF(cond) \
- do { \
- if (cond) { GNUNET_break (0); goto EXITIF_exit; } \
- } while (0)
+ do { \
+ if (cond) { GNUNET_break (0); goto EXITIF_exit; } \
+ } while (0)
/**
* Parse a donau's signing key encoded in JSON.
@@ -546,8 +546,8 @@ const struct TALER_Amount *
DONAU_get_donation_amount_from_bkps (
const struct DONAU_Keys *keys,
const struct DONAU_BlindedUniqueDonorIdentifierKeyPair *bkps,
- const size_t num_bkps,
- const uint64_t year)
+ size_t num_bkps,
+ uint64_t year)
{
struct TALER_Amount *sum;
diff --git a/src/testing/testing_api_cmd_charity_delete.c b/src/testing/testing_api_cmd_charity_delete.c
@@ -117,7 +117,7 @@ status_run (void *cls,
/* Get charity id from trait */
{
const struct TALER_TESTING_Command *charity_post_cmd;
- const unsigned long long *charity_id;
+ uint64_t *charity_id;
charity_post_cmd = TALER_TESTING_interpreter_lookup_command (is,
ss->
diff --git a/src/testing/testing_api_cmd_charity_get.c b/src/testing/testing_api_cmd_charity_get.c
@@ -116,7 +116,7 @@ status_run (void *cls,
/* Get charity id from trait */
{
const struct TALER_TESTING_Command *charity_post_cmd;
- const unsigned long long *charity_id;
+ uint64_t *charity_id;
charity_post_cmd = TALER_TESTING_interpreter_lookup_command (is,
ss->
diff --git a/src/testing/testing_api_cmd_charity_post.c b/src/testing/testing_api_cmd_charity_post.c
@@ -66,7 +66,7 @@ struct StatusState
/**
* charity id
*/
- unsigned long long charity_id;
+ uint64_t charity_id;
};
@@ -99,7 +99,7 @@ charity_status_cb (void *cls,
return;
}
if (ss->expected_response_code == gcr->hr.http_status)
- ss->charity_id = (unsigned long long) gcr->details.ok.charity_id;
+ ss->charity_id = gcr->details.ok.charity_id;
TALER_TESTING_interpreter_next (ss->is);
}
diff --git a/src/testing/testing_api_cmd_issue_receipts.c b/src/testing/testing_api_cmd_issue_receipts.c
@@ -60,7 +60,7 @@ struct StatusState
/**
* charity id
*/
- unsigned long long charity_id;
+ uint64_t charity_id;
/**
* charity id
@@ -335,7 +335,7 @@ status_run (void *cls,
/* Get charity id and the charity private key from trait */
{
const struct TALER_TESTING_Command *charity_post_cmd;
- const unsigned long long *charity_id;
+ uint64_t *charity_id;
const struct DONAU_CharityPrivateKeyP *charity_priv;