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/namecache/test_namecache_api_cache_block.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/namecache/test_namecache_api_cache_block.c')
-rw-r--r-- | src/namecache/test_namecache_api_cache_block.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/namecache/test_namecache_api_cache_block.c b/src/namecache/test_namecache_api_cache_block.c index ff4d93b4f..5522b207d 100644 --- a/src/namecache/test_namecache_api_cache_block.c +++ b/src/namecache/test_namecache_api_cache_block.c | |||
@@ -68,10 +68,9 @@ cleanup () | |||
68 | * Re-establish the connection to the service. | 68 | * Re-establish the connection to the service. |
69 | * | 69 | * |
70 | * @param cls handle to use to re-connect. | 70 | * @param cls handle to use to re-connect. |
71 | * @param tc scheduler context | ||
72 | */ | 71 | */ |
73 | static void | 72 | static void |
74 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 73 | endbadly (void *cls) |
75 | { | 74 | { |
76 | if (NULL != nsqe) | 75 | if (NULL != nsqe) |
77 | { | 76 | { |
@@ -84,7 +83,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
84 | 83 | ||
85 | 84 | ||
86 | static void | 85 | static void |
87 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 86 | end (void *cls) |
88 | { | 87 | { |
89 | cleanup (); | 88 | cleanup (); |
90 | res = 0; | 89 | res = 0; |