gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: fix ftbfs of testing/


From: gnunet
Subject: [taler-anastasis] branch master updated: fix ftbfs of testing/
Date: Wed, 10 Feb 2021 11:20:43 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 5ed7418  fix ftbfs of testing/
5ed7418 is described below

commit 5ed74183f37385810278dcad406d34716091ccf6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Feb 10 11:20:40 2021 +0100

    fix ftbfs of testing/
---
 src/include/anastasis_testing_lib.h       |  1 +
 src/testing/testing_cmd_challenge_start.c | 12 ++++++------
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/include/anastasis_testing_lib.h 
b/src/include/anastasis_testing_lib.h
index 2a6d9d8..f289bf3 100644
--- a/src/include/anastasis_testing_lib.h
+++ b/src/include/anastasis_testing_lib.h
@@ -474,6 +474,7 @@ struct TALER_TESTING_Command
 ANASTASIS_TESTING_cmd_challenge_start (const char *label,
                                        unsigned int http_status,
                                        const char *challenge_ref,
+                                       const char *payment_ref,
                                        unsigned int challenge_index);
 
 /**
diff --git a/src/testing/testing_cmd_challenge_start.c 
b/src/testing/testing_cmd_challenge_start.c
index a0b4517..cc3fa33 100644
--- a/src/testing/testing_cmd_challenge_start.c
+++ b/src/testing/testing_cmd_challenge_start.c
@@ -61,7 +61,7 @@ struct ChallengeState
   /**
    * "taler://pay/" URL we got back, if any. Otherwise NULL.
    */
-  char *payment_url;
+  char *payment_uri;
 
   /**
    * Payment order ID we are to provide in the request, may be NULL.
@@ -133,7 +133,7 @@ challenge_start_cb (void *cls,
       TALER_TESTING_interpreter_fail (cs->is);
       return;
     }
-    cs->payment_url = GNUNET_strdup (
+    cs->payment_uri = GNUNET_strdup (
       csr->details.payment_required.taler_pay_url);
     TALER_TESTING_interpreter_next (cs->is);
     return;
@@ -214,7 +214,7 @@ challenge_start_run (void *cls,
     TALER_TESTING_interpreter_fail (cs->is);
     return;
   }
-  if (NULL != tus->paid_order_ref)
+  if (NULL != cs->payment_ref)
   {
     const struct TALER_TESTING_Command *ref;
 
@@ -223,7 +223,7 @@ challenge_start_run (void *cls,
     if (NULL == ref)
     {
       GNUNET_break (0);
-      TALER_TESTING_interpreter_fail (tus->is);
+      TALER_TESTING_interpreter_fail (cs->is);
       return;
     }
     if (GNUNET_OK !=
@@ -232,7 +232,7 @@ challenge_start_run (void *cls,
                                                     &ps))
     {
       GNUNET_break (0);
-      TALER_TESTING_interpreter_fail (tus->is);
+      TALER_TESTING_interpreter_fail (cs->is);
       return;
     }
   }
@@ -266,7 +266,7 @@ challenge_start_cleanup (void *cls,
 {
   struct ChallengeState *cs = cls;
 
-  GNUNET_free (cs->payment_url);
+  GNUNET_free (cs->payment_uri);
   GNUNET_free (cs);
 }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]