aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_remove_not_existing_record.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_remove_not_existing_record.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_remove_not_existing_record.c')
-rw-r--r--src/namestore/test_namestore_api_remove_not_existing_record.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c
index ed7f7088e..ef199cdf6 100644
--- a/src/namestore/test_namestore_api_remove_not_existing_record.c
+++ b/src/namestore/test_namestore_api_remove_not_existing_record.c
@@ -69,10 +69,9 @@ cleanup ()
69 * Re-establish the connection to the service. 69 * Re-establish the connection to the service.
70 * 70 *
71 * @param cls handle to use to re-connect. 71 * @param cls handle to use to re-connect.
72 * @param tc scheduler context
73 */ 72 */
74static void 73static void
75endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 74endbadly (void *cls)
76{ 75{
77 if (NULL != nsqe) 76 if (NULL != nsqe)
78 { 77 {
@@ -85,8 +84,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
85 84
86 85
87static void 86static void
88end (void *cls, 87end (void *cls)
89 const struct GNUNET_SCHEDULER_TaskContext *tc)
90{ 88{
91 cleanup (); 89 cleanup ();
92 res = 0; 90 res = 0;