diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-02-23 16:08:27 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-02-23 16:08:27 +0100 |
commit | b244e23859a933d98e44dac88bd529f22e378214 (patch) | |
tree | 82e383f24573a30f5a42e93e6d527f8195074d38 /src/testing | |
parent | 7910ca183f40a544dae4add5e7b5ff4775e65e12 (diff) | |
download | exchange-b244e23859a933d98e44dac88bd529f22e378214.tar.xz |
-make age commiment structs const in traits
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing_api_cmd_deposit.c | 4 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_refresh.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/testing/testing_api_cmd_deposit.c b/src/testing/testing_api_cmd_deposit.c index ad1315b28..33c1db447 100644 --- a/src/testing/testing_api_cmd_deposit.c +++ b/src/testing/testing_api_cmd_deposit.c @@ -287,7 +287,7 @@ deposit_run (void *cls, const struct TALER_TESTING_Command *coin_cmd; const struct TALER_CoinSpendPrivateKeyP *coin_priv; struct TALER_CoinSpendPublicKeyP coin_pub; - struct TALER_AgeCommitment *age_commitment = NULL; + const struct TALER_AgeCommitment *age_commitment = NULL; struct TALER_AgeCommitmentHash h_age_commitment = {0}; const struct TALER_EXCHANGE_DenomPublicKey *denom_pub; const struct TALER_DenominationSignature *denom_pub_sig; @@ -533,7 +533,7 @@ deposit_traits (void *cls, const struct TALER_TESTING_Command *coin_cmd; /* Will point to coin cmd internals. */ const struct TALER_CoinSpendPrivateKeyP *coin_spent_priv; - struct TALER_AgeCommitment *age_commitment; + const struct TALER_AgeCommitment *age_commitment; if (GNUNET_YES != ds->command_initialized) { diff --git a/src/testing/testing_api_cmd_refresh.c b/src/testing/testing_api_cmd_refresh.c index f287681d8..9a81a603d 100644 --- a/src/testing/testing_api_cmd_refresh.c +++ b/src/testing/testing_api_cmd_refresh.c @@ -1044,8 +1044,8 @@ melt_run (void *cls, { struct TALER_Amount melt_amount; struct TALER_Amount fresh_amount; - struct TALER_AgeCommitment *age_commitment; - struct TALER_AgeCommitmentHash *h_age_commitment; + const struct TALER_AgeCommitment *age_commitment; + const struct TALER_AgeCommitmentHash *h_age_commitment; const struct TALER_DenominationSignature *melt_sig; const struct TALER_EXCHANGE_DenomPublicKey *melt_denom_pub; const struct TALER_TESTING_Command *coin_command; |