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) |
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 2150b09732..a708765343 100644 --- a/src/regex/gnunet-service-regex.c +++ b/src/regex/gnunet-service-regex.c @@ -152,11 +152,9 @@ handle_client_disconnect (void *cls, * Task run during shutdown. * * @param cls unused - * @param tc unused */ static void -cleanup_task (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +cleanup_task (void *cls) { struct ClientEntry *ce; @@ -177,13 +175,11 @@ cleanup_task (void *cls, /** * Periodic task to refresh our announcement of the regex. * - * @param cls the 'struct ClientEntry' of the client that triggered the + * @param cls the `struct ClientEntry *` of the client that triggered the * announcement - * @param tc scheduler context */ static void -reannounce (void *cls, - const struct GNUNET_SCHEDULER_TaskContext *tc) +reannounce (void *cls) { struct ClientEntry *ce = cls; |