aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/test_conversation_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/conversation/test_conversation_api.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-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/conversation/test_conversation_api.c')
-rw-r--r--src/conversation/test_conversation_api.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/conversation/test_conversation_api.c b/src/conversation/test_conversation_api.c
index 317818c8e..f8159115b 100644
--- a/src/conversation/test_conversation_api.c
+++ b/src/conversation/test_conversation_api.c
@@ -73,8 +73,7 @@ static struct GNUNET_SCHEDULER_Task * call_task;
73 73
74 74
75static void 75static void
76phone_send (void *cls, 76phone_send (void *cls)
77 const struct GNUNET_SCHEDULER_TaskContext *tc)
78{ 77{
79 static unsigned int i; 78 static unsigned int i;
80 char buf[32]; 79 char buf[32];
@@ -88,8 +87,7 @@ phone_send (void *cls,
88 87
89 88
90static void 89static void
91call_send (void *cls, 90call_send (void *cls)
92 const struct GNUNET_SCHEDULER_TaskContext *tc)
93{ 91{
94 static unsigned int i; 92 static unsigned int i;
95 char buf[32]; 93 char buf[32];
@@ -272,10 +270,9 @@ static struct GNUNET_MICROPHONE_Handle phone_mic = {
272 * Signature of the main function of a task. 270 * Signature of the main function of a task.
273 * 271 *
274 * @param cls closure 272 * @param cls closure
275 * @param tc context information (why was this task triggered now)
276 */ 273 */
277static void 274static void
278end_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 275end_test (void *cls)
279{ 276{
280 GNUNET_SCHEDULER_shutdown (); 277 GNUNET_SCHEDULER_shutdown ();
281 if (NULL != op) 278 if (NULL != op)