diff options
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 () }; |