diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-06-07 23:11:35 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-06-07 23:11:35 +0200 |
commit | 1701d4f86a39edc390f172da6f8e72c94b6a8e97 (patch) | |
tree | 38f098aaafff012e75e5629e63a63308c5e51d30 /src/testing/testing_cmd_challenge_answer.c | |
parent | d4ab34a799965efed34bbb442710ee46dd99a32c (diff) | |
download | anastasis-1701d4f86a39edc390f172da6f8e72c94b6a8e97.tar.gz anastasis-1701d4f86a39edc390f172da6f8e72c94b6a8e97.tar.bz2 anastasis-1701d4f86a39edc390f172da6f8e72c94b6a8e97.zip |
major libtalertesting API refactoring, including no longer having taler-specific logic in the test engine core
Diffstat (limited to 'src/testing/testing_cmd_challenge_answer.c')
-rw-r--r-- | src/testing/testing_cmd_challenge_answer.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/testing/testing_cmd_challenge_answer.c b/src/testing/testing_cmd_challenge_answer.c index 8e5e2d8..ad24861 100644 --- a/src/testing/testing_cmd_challenge_answer.c +++ b/src/testing/testing_cmd_challenge_answer.c @@ -249,7 +249,7 @@ challenge_answer_run (void *cls, if (1 == cs->mode) { const struct TALER_TESTING_Command *ref; - const char **answer; + const char *answer; unsigned long long code; char dummy; @@ -270,7 +270,7 @@ challenge_answer_run (void *cls, return; } if (1 != - sscanf (*answer, + sscanf (answer, "%llu%c", &code, &dummy)) @@ -544,14 +544,11 @@ challenge_create_traits (void *cls, { struct ChallengeState *cs = cls; struct TALER_TESTING_Trait traits[] = { - ANASTASIS_TESTING_make_trait_code ( - (const char **) &cs->code), + ANASTASIS_TESTING_make_trait_code (cs->code), ANASTASIS_TESTING_make_trait_payment_secret ( &cs->payment_order_req), - TALER_TESTING_make_trait_payto_uri ( - (const char **) cs->payment_uri), - TALER_TESTING_make_trait_order_id ( - (const char **) &cs->order_id), + TALER_TESTING_make_trait_payto_uri (cs->payment_uri), + TALER_TESTING_make_trait_order_id (cs->order_id), TALER_TESTING_trait_end () }; |