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/regex/gnunet-service-regex.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/regex/gnunet-service-regex.c')
-rw-r--r-- | src/regex/gnunet-service-regex.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/regex/gnunet-service-regex.c b/src/regex/gnunet-service-regex.c index 2150b0973..a70876534 100644 --- a/src/regex/gnunet-service-regex.c +++ b/src/regex/gnunet-service-regex.c | |||
@@ -152,11 +152,9 @@ handle_client_disconnect (void *cls, | |||
152 | * Task run during shutdown. | 152 | * Task run during shutdown. |
153 | * | 153 | * |
154 | * @param cls unused | 154 | * @param cls unused |
155 | * @param tc unused | ||
156 | */ | 155 | */ |
157 | static void | 156 | static void |
158 | cleanup_task (void *cls, | 157 | cleanup_task (void *cls) |
159 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
160 | { | 158 | { |
161 | struct ClientEntry *ce; | 159 | struct ClientEntry *ce; |
162 | 160 | ||
@@ -177,13 +175,11 @@ cleanup_task (void *cls, | |||
177 | /** | 175 | /** |
178 | * Periodic task to refresh our announcement of the regex. | 176 | * Periodic task to refresh our announcement of the regex. |
179 | * | 177 | * |
180 | * @param cls the 'struct ClientEntry' of the client that triggered the | 178 | * @param cls the `struct ClientEntry *` of the client that triggered the |
181 | * announcement | 179 | * announcement |
182 | * @param tc scheduler context | ||
183 | */ | 180 | */ |
184 | static void | 181 | static void |
185 | reannounce (void *cls, | 182 | reannounce (void *cls) |
186 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
187 | { | 183 | { |
188 | struct ClientEntry *ce = cls; | 184 | struct ClientEntry *ce = cls; |
189 | 185 | ||