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_trait_wtid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/exchange-lib/testing_api_trait_wtid.c') diff --git a/src/exchange-lib/testing_api_trait_wtid.c b/src/exchange-lib/testing_api_trait_wtid.c index 8406dbbb..67232971 100644 --- a/src/exchange-lib/testing_api_trait_wtid.c +++ b/src/exchange-lib/testing_api_trait_wtid.c @@ -44,26 +44,26 @@ int TALER_TESTING_get_trait_wtid (const struct TALER_TESTING_Command *cmd, unsigned int index, - struct TALER_WireTransferIdentifierRawP **wtid) + const struct TALER_WireTransferIdentifierRawP **wtid) { return cmd->traits (cmd->cls, - (void **) wtid, + (const void **) wtid, TALER_TESTING_TRAIT_WTID, index); } + /** * Offer a WTID. * * @param index associate the object with this index * @param wtid which object should be returned - * * @return the trait. */ struct TALER_TESTING_Trait TALER_TESTING_make_trait_wtid (unsigned int index, - struct TALER_WireTransferIdentifierRawP *wtid) + const struct TALER_WireTransferIdentifierRawP *wtid) { struct TALER_TESTING_Trait ret = { .index = index, -- cgit v1.2.3