summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_get_templates.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_get_templates.c')
-rw-r--r--src/testing/testing_api_cmd_get_templates.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/testing/testing_api_cmd_get_templates.c b/src/testing/testing_api_cmd_get_templates.c
index bb0700a1..bc971dc2 100644
--- a/src/testing/testing_api_cmd_get_templates.c
+++ b/src/testing/testing_api_cmd_get_templates.c
@@ -109,7 +109,7 @@ get_templates_cb (void *cls,
gis->templates[i]);
{
- const char **template_id;
+ const char *template_id;
if (GNUNET_OK !=
TALER_TESTING_get_trait_template_id (template_cmd,
@@ -121,7 +121,7 @@ get_templates_cb (void *cls,
return;
}
if (0 != strcmp (tgr->details.ok.templates[i].template_id,
- *template_id))
+ template_id))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Template id does not match\n");
@@ -163,10 +163,11 @@ get_templates_run (void *cls,
struct GetTemplatesState *gis = cls;
gis->is = is;
- gis->igh = TALER_MERCHANT_templates_get (is->ctx,
- gis->merchant_url,
- &get_templates_cb,
- gis);
+ gis->igh = TALER_MERCHANT_templates_get (
+ TALER_TESTING_interpreter_get_context (is),
+ gis->merchant_url,
+ &get_templates_cb,
+ gis);
GNUNET_assert (NULL != gis->igh);
}