denom pub trait made 'const'

This commit is contained in:
Marcello Stanisci 2018-02-21 16:58:18 +01:00
parent 1e6efdc5f0
commit 8d5cc9f550
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
5 changed files with 7 additions and 7 deletions

View File

@ -143,7 +143,7 @@ deposit_run (void *cls,
struct TALER_TESTING_Command *this_cmd; struct TALER_TESTING_Command *this_cmd;
struct TALER_CoinSpendPrivateKeyP *coin_priv; struct TALER_CoinSpendPrivateKeyP *coin_priv;
struct TALER_CoinSpendPublicKeyP coin_pub; struct TALER_CoinSpendPublicKeyP coin_pub;
struct TALER_EXCHANGE_DenomPublicKey *denom_pub; const struct TALER_EXCHANGE_DenomPublicKey *denom_pub;
struct TALER_DenominationSignature *denom_pub_sig; struct TALER_DenominationSignature *denom_pub_sig;
struct TALER_CoinSpendSignatureP coin_sig; struct TALER_CoinSpendSignatureP coin_sig;
struct GNUNET_TIME_Absolute refund_deadline; struct GNUNET_TIME_Absolute refund_deadline;

View File

@ -217,7 +217,7 @@ payback_run (void *cls,
const struct TALER_TESTING_Command *coin_cmd; const struct TALER_TESTING_Command *coin_cmd;
struct TALER_CoinSpendPrivateKeyP *coin_priv; struct TALER_CoinSpendPrivateKeyP *coin_priv;
struct TALER_DenominationBlindingKeyP *blinding_key; struct TALER_DenominationBlindingKeyP *blinding_key;
struct TALER_EXCHANGE_DenomPublicKey *denom_pub; const struct TALER_EXCHANGE_DenomPublicKey *denom_pub;
struct TALER_DenominationSignature *coin_sig; struct TALER_DenominationSignature *coin_sig;
struct TALER_PlanchetSecretsP planchet; struct TALER_PlanchetSecretsP planchet;
@ -373,7 +373,7 @@ revoke_run (void *cls,
{ {
struct RevokeState *rs = cls; struct RevokeState *rs = cls;
const struct TALER_TESTING_Command *coin_cmd; const struct TALER_TESTING_Command *coin_cmd;
struct TALER_EXCHANGE_DenomPublicKey *denom_pub; const struct TALER_EXCHANGE_DenomPublicKey *denom_pub;
rs->is = is; rs->is = is;
/* Get denom pub from trait */ /* Get denom pub from trait */

View File

@ -245,7 +245,7 @@ reveal_cb (void *cls,
rrs->fresh_coins = GNUNET_new_array rrs->fresh_coins = GNUNET_new_array
(num_coins, struct FreshCoin); (num_coins, struct FreshCoin);
struct TALER_EXCHANGE_DenomPublicKey *fresh_pks; const struct TALER_EXCHANGE_DenomPublicKey *fresh_pks;
unsigned int i; unsigned int i;
if (GNUNET_OK != TALER_TESTING_get_trait_denom_pub if (GNUNET_OK != TALER_TESTING_get_trait_denom_pub
(melt_cmd, 0, &fresh_pks)) (melt_cmd, 0, &fresh_pks))
@ -670,7 +670,7 @@ refresh_melt_run (void *cls,
struct TALER_Amount melt_amount; struct TALER_Amount melt_amount;
struct TALER_Amount fresh_amount; struct TALER_Amount fresh_amount;
struct TALER_DenominationSignature *melt_sig; struct TALER_DenominationSignature *melt_sig;
struct TALER_EXCHANGE_DenomPublicKey *melt_denom_pub; const struct TALER_EXCHANGE_DenomPublicKey *melt_denom_pub;
unsigned int i; unsigned int i;
const struct MeltDetails *md = &rms->melted_coin; const struct MeltDetails *md = &rms->melted_coin;

View File

@ -45,7 +45,7 @@ int
TALER_TESTING_get_trait_denom_pub TALER_TESTING_get_trait_denom_pub
(const struct TALER_TESTING_Command *cmd, (const struct TALER_TESTING_Command *cmd,
unsigned int index, unsigned int index,
struct TALER_EXCHANGE_DenomPublicKey **denom_pub) const struct TALER_EXCHANGE_DenomPublicKey **denom_pub)
{ {
return cmd->traits (cmd->cls, return cmd->traits (cmd->cls,
(void **) denom_pub, (void **) denom_pub,

View File

@ -991,7 +991,7 @@ int
TALER_TESTING_get_trait_denom_pub TALER_TESTING_get_trait_denom_pub
(const struct TALER_TESTING_Command *cmd, (const struct TALER_TESTING_Command *cmd,
unsigned int index, unsigned int index,
struct TALER_EXCHANGE_DenomPublicKey **dpk); const struct TALER_EXCHANGE_DenomPublicKey **dpk);
/** /**