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_track.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/exchange-lib/testing_api_cmd_track.c') diff --git a/src/exchange-lib/testing_api_cmd_track.c b/src/exchange-lib/testing_api_cmd_track.c index 201ac3f9..6c9d9fd5 100644 --- a/src/exchange-lib/testing_api_cmd_track.c +++ b/src/exchange-lib/testing_api_cmd_track.c @@ -219,7 +219,8 @@ deposit_wtid_cb /* expected wire transfer subject line. */ const char *transfer_subject; - if (GNUNET_OK != TALER_TESTING_get_trait_transfer_subject + if (GNUNET_OK != + TALER_TESTING_get_trait_transfer_subject (bank_transfer_cmd, 0, &transfer_subject)) { GNUNET_break (0); @@ -393,12 +394,11 @@ track_transaction_cleanup */ static int track_transaction_traits (void *cls, - void **ret, + const void **ret, const char *trait, unsigned int index) { struct TrackTransactionState *tts = cls; - struct TALER_TESTING_Trait traits[] = { TALER_TESTING_make_trait_wtid (0, &tts->wtid), TALER_TESTING_trait_end () @@ -410,6 +410,7 @@ track_transaction_traits (void *cls, index); } + /** * Create a "track transaction" command. * @@ -698,7 +699,7 @@ track_transfer_run (void *cls, /* looking for a wtid to track .. */ struct TrackTransferState *tts = cls; struct TALER_WireTransferIdentifierRawP wtid; - struct TALER_WireTransferIdentifierRawP *wtid_ptr; + const struct TALER_WireTransferIdentifierRawP *wtid_ptr; /* If no reference is given, we'll use a all-zeros * WTID */ -- cgit v1.2.3