From e42f014cffae126a52c92fbf8151e6f5cecc9de0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 17 Nov 2018 17:19:02 +0100 Subject: use more const in taler_testing_lib.h --- src/exchange-lib/testing_api_cmd_payback.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/exchange-lib/testing_api_cmd_payback.c') diff --git a/src/exchange-lib/testing_api_cmd_payback.c b/src/exchange-lib/testing_api_cmd_payback.c index 43118ef0..bb7b302e 100644 --- a/src/exchange-lib/testing_api_cmd_payback.c +++ b/src/exchange-lib/testing_api_cmd_payback.c @@ -134,7 +134,7 @@ payback_cb (void *cls, struct TALER_TESTING_Interpreter *is = ps->is; struct TALER_TESTING_Command *cmd = &is->commands[is->ip]; const struct TALER_TESTING_Command *reserve_cmd; - struct TALER_ReservePrivateKeyP *reserve_priv; + const struct TALER_ReservePrivateKeyP *reserve_priv; struct TALER_ReservePublicKeyP rp; struct TALER_Amount expected_amount; @@ -225,9 +225,9 @@ payback_run (void *cls, struct PaybackState *ps = cls; const struct TALER_TESTING_Command *coin_cmd; const struct TALER_CoinSpendPrivateKeyP *coin_priv; - struct TALER_DenominationBlindingKeyP *blinding_key; + const struct TALER_DenominationBlindingKeyP *blinding_key; const struct TALER_EXCHANGE_DenomPublicKey *denom_pub; - struct TALER_DenominationSignature *coin_sig; + const struct TALER_DenominationSignature *coin_sig; struct TALER_PlanchetSecretsP planchet; ps->is = is; @@ -349,13 +349,12 @@ payback_cleanup (void *cls, */ static int revoke_traits (void *cls, - void **ret, + const void **ret, const char *trait, unsigned int index) { struct RevokeState *rs = cls; - struct TALER_TESTING_Trait traits[] = { /* Needed by the handler which waits the proc' * death and calls the next command */ -- cgit v1.2.3