diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/consensus/test_consensus_api.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) | |
download | gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip |
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/consensus/test_consensus_api.c')
-rw-r--r-- | src/consensus/test_consensus_api.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/consensus/test_consensus_api.c b/src/consensus/test_consensus_api.c index 18c5b3b31..0073267f8 100644 --- a/src/consensus/test_consensus_api.c +++ b/src/consensus/test_consensus_api.c | |||
@@ -67,11 +67,9 @@ insert_done (void *cls, int success) | |||
67 | * Signature of the main function of a task. | 67 | * Signature of the main function of a task. |
68 | * | 68 | * |
69 | * @param cls closure | 69 | * @param cls closure |
70 | * @param tc context information (why was this task triggered now) | ||
71 | */ | 70 | */ |
72 | static void | 71 | static void |
73 | on_shutdown (void *cls, | 72 | on_shutdown (void *cls) |
74 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
75 | { | 73 | { |
76 | if (NULL != consensus) | 74 | if (NULL != consensus) |
77 | { | 75 | { |
@@ -121,4 +119,3 @@ main (int argc, char **argv) | |||
121 | &run, NULL); | 119 | &run, NULL); |
122 | return ret; | 120 | return ret; |
123 | } | 121 | } |
124 | |||