aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_store_update.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_store_update.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_store_update.c')
-rw-r--r--src/namestore/test_namestore_api_store_update.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/namestore/test_namestore_api_store_update.c b/src/namestore/test_namestore_api_store_update.c
index 22508b1d3..ed5a399bd 100644
--- a/src/namestore/test_namestore_api_store_update.c
+++ b/src/namestore/test_namestore_api_store_update.c
@@ -91,11 +91,9 @@ cleanup ()
91 * Re-establish the connection to the service. 91 * Re-establish the connection to the service.
92 * 92 *
93 * @param cls handle to use to re-connect. 93 * @param cls handle to use to re-connect.
94 * @param tc scheduler context
95 */ 94 */
96static void 95static void
97endbadly (void *cls, 96endbadly (void *cls)
98 const struct GNUNET_SCHEDULER_TaskContext *tc)
99{ 97{
100 if (NULL != nsqe) 98 if (NULL != nsqe)
101 { 99 {
@@ -113,8 +111,7 @@ endbadly (void *cls,
113 111
114 112
115static void 113static void
116end (void *cls, 114end (void *cls)
117 const struct GNUNET_SCHEDULER_TaskContext *tc)
118{ 115{
119 cleanup (); 116 cleanup ();
120 res = 0; 117 res = 0;