aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_lookup_public.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/namestore/test_namestore_api_lookup_public.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/namestore/test_namestore_api_lookup_public.c')
-rw-r--r--src/namestore/test_namestore_api_lookup_public.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_lookup_public.c b/src/namestore/test_namestore_api_lookup_public.c
index ef63b94f1..09d6b302d 100644
--- a/src/namestore/test_namestore_api_lookup_public.c
+++ b/src/namestore/test_namestore_api_lookup_public.c
@@ -79,10 +79,9 @@ cleanup ()
79 * Re-establish the connection to the service. 79 * Re-establish the connection to the service.
80 * 80 *
81 * @param cls handle to use to re-connect. 81 * @param cls handle to use to re-connect.
82 * @param tc scheduler context
83 */ 82 */
84static void 83static void
85endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 84endbadly (void *cls)
86{ 85{
87 if (NULL != nsqe) 86 if (NULL != nsqe)
88 { 87 {
@@ -100,7 +99,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
100 99
101 100
102static void 101static void
103end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 102end (void *cls)
104{ 103{
105 cleanup (); 104 cleanup ();
106 res = 0; 105 res = 0;