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/namestore/test_namestore_api_remove.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/namestore/test_namestore_api_remove.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c index 35911e08f..c6c439e86 100644 --- a/src/namestore/test_namestore_api_remove.c +++ b/src/namestore/test_namestore_api_remove.c | |||
@@ -71,10 +71,9 @@ cleanup () | |||
71 | * Re-establish the connection to the service. | 71 | * Re-establish the connection to the service. |
72 | * | 72 | * |
73 | * @param cls handle to use to re-connect. | 73 | * @param cls handle to use to re-connect. |
74 | * @param tc scheduler context | ||
75 | */ | 74 | */ |
76 | static void | 75 | static void |
77 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 76 | endbadly (void *cls) |
78 | { | 77 | { |
79 | if (NULL != nsqe) | 78 | if (NULL != nsqe) |
80 | { | 79 | { |
@@ -87,7 +86,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
87 | 86 | ||
88 | 87 | ||
89 | static void | 88 | static void |
90 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 89 | end (void *cls) |
91 | { | 90 | { |
92 | cleanup (); | 91 | cleanup (); |
93 | res = 0; | 92 | res = 0; |