diff options
Diffstat (limited to 'src/regex/gnunet-daemon-regexprofiler.c')
-rw-r--r-- | src/regex/gnunet-daemon-regexprofiler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regex/gnunet-daemon-regexprofiler.c b/src/regex/gnunet-daemon-regexprofiler.c index 2ff8ad0f2..1ff3b55e3 100644 --- a/src/regex/gnunet-daemon-regexprofiler.c +++ b/src/regex/gnunet-daemon-regexprofiler.c | |||
@@ -106,10 +106,9 @@ static struct GNUNET_CRYPTO_EddsaPrivateKey *my_private_key; | |||
106 | * Task run during shutdown. | 106 | * Task run during shutdown. |
107 | * | 107 | * |
108 | * @param cls unused | 108 | * @param cls unused |
109 | * @param tc unused | ||
110 | */ | 109 | */ |
111 | static void | 110 | static void |
112 | shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 111 | shutdown_task (void *cls) |
113 | { | 112 | { |
114 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "shutting down\n"); | 113 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "shutting down\n"); |
115 | 114 | ||
@@ -137,15 +136,16 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
137 | * Announce a previously announced regex re-using cached data. | 136 | * Announce a previously announced regex re-using cached data. |
138 | * | 137 | * |
139 | * @param cls Closure (regex to announce if needed). | 138 | * @param cls Closure (regex to announce if needed). |
140 | * @param tc TaskContext. | ||
141 | */ | 139 | */ |
142 | static void | 140 | static void |
143 | reannounce_regex (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 141 | reannounce_regex (void *cls) |
144 | { | 142 | { |
145 | struct GNUNET_TIME_Relative random_delay; | ||
146 | char *regex = cls; | 143 | char *regex = cls; |
144 | struct GNUNET_TIME_Relative random_delay; | ||
145 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
147 | 146 | ||
148 | reannounce_task = NULL; | 147 | reannounce_task = NULL; |
148 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
149 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 149 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
150 | { | 150 | { |
151 | GNUNET_free (regex); | 151 | GNUNET_free (regex); |