summaryrefslogtreecommitdiff
path: root/src/testing/testing_cmd_policy_create.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-17 22:02:08 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-17 22:02:08 +0100
commit3ccacbd78bf720294363648a496b635abe072408 (patch)
treed03414707aebbaaffa7add6a7ca0ea02be1b6ca7 /src/testing/testing_cmd_policy_create.c
parent36e8be14334cd619d2847e3e8c1ecc136f402d71 (diff)
downloadanastasis-3ccacbd78bf720294363648a496b635abe072408.tar.gz
anastasis-3ccacbd78bf720294363648a496b635abe072408.tar.bz2
anastasis-3ccacbd78bf720294363648a496b635abe072408.zip
make anastasis build against latest Exchange
Diffstat (limited to 'src/testing/testing_cmd_policy_create.c')
-rw-r--r--src/testing/testing_cmd_policy_create.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/testing/testing_cmd_policy_create.c b/src/testing/testing_cmd_policy_create.c
index 33d5975..64f7060 100644
--- a/src/testing/testing_cmd_policy_create.c
+++ b/src/testing/testing_cmd_policy_create.c
@@ -82,7 +82,7 @@ policy_create_run (void *cls,
for (unsigned int i = 0; i < pcs->cmd_label_array_length; i++)
{
const struct TALER_TESTING_Command *ref;
- const struct ANASTASIS_Truth *truth;
+ const struct ANASTASIS_Truth **truth;
ref = TALER_TESTING_interpreter_lookup_command (is,
pcs->cmd_label_array[i]);
@@ -94,15 +94,14 @@ policy_create_run (void *cls,
}
if (GNUNET_OK !=
ANASTASIS_TESTING_get_trait_truth (ref,
- 0,
&truth))
{
GNUNET_break (0);
TALER_TESTING_interpreter_fail (pcs->is);
return;
}
- GNUNET_assert (NULL != truth);
- truths[i] = truth;
+ GNUNET_assert (NULL != *truth);
+ truths[i] = *truth;
}
}
@@ -159,8 +158,8 @@ policy_create_traits (void *cls,
{
struct PolicyCreateState *pcs = cls;
struct TALER_TESTING_Trait traits[] = {
- ANASTASIS_TESTING_make_trait_policy (0,
- pcs->policy),
+ ANASTASIS_TESTING_make_trait_policy (
+ (const struct ANASTASIS_Policy **) &pcs->policy),
TALER_TESTING_trait_end ()
};