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_number.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/exchange-lib/testing_api_trait_number.c') diff --git a/src/exchange-lib/testing_api_trait_number.c b/src/exchange-lib/testing_api_trait_number.c index 67b01ae8..ee2e76db 100644 --- a/src/exchange-lib/testing_api_trait_number.c +++ b/src/exchange-lib/testing_api_trait_number.c @@ -38,29 +38,26 @@ * @param cmd command to extract the number from. * @param index the number's index number. * @param n[out] set to the number coming from @a cmd. - * * @return #GNUNET_OK on success. */ int TALER_TESTING_get_trait_uint (const struct TALER_TESTING_Command *cmd, unsigned int index, - unsigned int **n) + const unsigned int **n) { return cmd->traits (cmd->cls, - (void **) n, + (const void **) n, TALER_TESTING_TRAIT_UINT, index); } - /** * Offer a number. * * @param index the number's index number. * @param n the number to offer. - * * @return #GNUNET_OK on success. */ struct TALER_TESTING_Trait @@ -92,7 +89,7 @@ TALER_TESTING_get_trait_uint64 const uint64_t **n) { return cmd->traits (cmd->cls, - (void **) n, + (const void **) n, TALER_TESTING_TRAIT_UINT64, index); } -- cgit v1.2.3