aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib/test_bank_api.c
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/bank-lib/test_bank_api.c
parentd34c6401b415edeceb205782dbcccd8b38c8e1b7 (diff)
fixing #4479
Diffstat (limited to 'src/bank-lib/test_bank_api.c')
-rw-r--r--src/bank-lib/test_bank_api.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bank-lib/test_bank_api.c b/src/bank-lib/test_bank_api.c
index fe02fb8e5..019b09976 100644
--- a/src/bank-lib/test_bank_api.c
+++ b/src/bank-lib/test_bank_api.c
@@ -171,9 +171,11 @@ context_task (void *cls);
/**
* Run the context task, the working set has changed.
+ *
+ * @param cls NULL
*/
static void
-trigger_context_task ()
+trigger_context_task (void *cls)
{
GNUNET_SCHEDULER_cancel (ctx_task);
ctx_task = GNUNET_SCHEDULER_add_now (&context_task,
@@ -333,7 +335,6 @@ interpreter_run (void *cls)
fail (is);
return;
}
- trigger_context_task ();
return;
default:
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -486,7 +487,8 @@ run (void *cls)
is = GNUNET_new (struct InterpreterState);
is->commands = commands;
- ctx = GNUNET_CURL_init ();
+ ctx = GNUNET_CURL_init (&trigger_context_task,
+ NULL);
GNUNET_assert (NULL != ctx);
ctx_task = GNUNET_SCHEDULER_add_now (&context_task,
ctx);