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_lookup_shadow_filter.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_lookup_shadow_filter.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_shadow_filter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namestore/test_namestore_api_lookup_shadow_filter.c b/src/namestore/test_namestore_api_lookup_shadow_filter.c index fd3d573f6..a22baa17b 100644 --- a/src/namestore/test_namestore_api_lookup_shadow_filter.c +++ b/src/namestore/test_namestore_api_lookup_shadow_filter.c | |||
@@ -94,10 +94,9 @@ cleanup () | |||
94 | * Re-establish the connection to the service. | 94 | * Re-establish the connection to the service. |
95 | * | 95 | * |
96 | * @param cls handle to use to re-connect. | 96 | * @param cls handle to use to re-connect. |
97 | * @param tc scheduler context | ||
98 | */ | 97 | */ |
99 | static void | 98 | static void |
100 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 99 | endbadly (void *cls) |
101 | { | 100 | { |
102 | if (NULL != delayed_lookup_task) | 101 | if (NULL != delayed_lookup_task) |
103 | { | 102 | { |
@@ -120,7 +119,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
120 | 119 | ||
121 | 120 | ||
122 | static void | 121 | static void |
123 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 122 | end (void *cls) |
124 | { | 123 | { |
125 | cleanup (); | 124 | cleanup (); |
126 | res = 0; | 125 | res = 0; |
@@ -244,8 +243,9 @@ name_lookup_active_proc (void *cls, | |||
244 | &pubkey, TEST_NAME, &rd_decrypt_cb, expected_rd)); | 243 | &pubkey, TEST_NAME, &rd_decrypt_cb, expected_rd)); |
245 | } | 244 | } |
246 | 245 | ||
246 | |||
247 | static void | 247 | static void |
248 | name_lookup_shadow (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 248 | name_lookup_shadow (void *cls) |
249 | { | 249 | { |
250 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 250 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
251 | "Performing lookup for shadow record \n"); | 251 | "Performing lookup for shadow record \n"); |