aboutsummaryrefslogtreecommitdiff
path: root/src/wire
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-02 02:33:14 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-02 02:33:14 +0200
commit1c2be591d3e77002c4b1d5095c06e434d9ad62fe (patch)
treebba60906d74b9d24cf92f583e74b0705f7b4024f /src/wire
parentd34c6401b415edeceb205782dbcccd8b38c8e1b7 (diff)
fixing #4479
Diffstat (limited to 'src/wire')
-rw-r--r--src/wire/plugin_wire_test.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/wire/plugin_wire_test.c b/src/wire/plugin_wire_test.c
index 80e5aaa8f..07072f27a 100644
--- a/src/wire/plugin_wire_test.c
+++ b/src/wire/plugin_wire_test.c
@@ -191,11 +191,13 @@ context_task (void *cls)
/**
* Run the bank task now.
*
- * @param tc context for which we should initiate running the task
+ * @param cls context for which we should initiate running the task
*/
static void
-run_bt (struct TestClosure *tc)
+run_bt (void *cls)
{
+ struct TestClosure *tc = cls;
+
if (NULL != tc->bt)
GNUNET_SCHEDULER_cancel (tc->bt);
tc->bt = GNUNET_SCHEDULER_add_now (&context_task,
@@ -751,7 +753,6 @@ test_execute_wire_transfer (void *cls,
GNUNET_free (eh);
return NULL;
}
- run_bt (tc);
return eh;
}
@@ -831,7 +832,8 @@ libtaler_plugin_wire_test_init (void *cls)
GNUNET_free (tc);
return NULL;
}
- tc->ctx = GNUNET_CURL_init ();
+ tc->ctx = GNUNET_CURL_init (&run_bt,
+ tc);
if (NULL == tc->ctx)
{
GNUNET_break (0);