diff options
Diffstat (limited to 'src/regex/gnunet-daemon-regexprofiler.c')
-rw-r--r-- | src/regex/gnunet-daemon-regexprofiler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regex/gnunet-daemon-regexprofiler.c b/src/regex/gnunet-daemon-regexprofiler.c index 3d6624cb8..6831a850c 100644 --- a/src/regex/gnunet-daemon-regexprofiler.c +++ b/src/regex/gnunet-daemon-regexprofiler.c | |||
@@ -62,7 +62,7 @@ static struct REGEX_INTERNAL_Announcement *announce_handle; | |||
62 | /** | 62 | /** |
63 | * Periodically reannounce regex. | 63 | * Periodically reannounce regex. |
64 | */ | 64 | */ |
65 | static GNUNET_SCHEDULER_TaskIdentifier reannounce_task; | 65 | static struct GNUNET_SCHEDULER_Task * reannounce_task; |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * What's the maximum reannounce period. | 68 | * What's the maximum reannounce period. |
@@ -145,7 +145,7 @@ reannounce_regex (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
145 | struct GNUNET_TIME_Relative random_delay; | 145 | struct GNUNET_TIME_Relative random_delay; |
146 | char *regex = cls; | 146 | char *regex = cls; |
147 | 147 | ||
148 | reannounce_task = GNUNET_SCHEDULER_NO_TASK; | 148 | reannounce_task = NULL; |
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); |
@@ -208,7 +208,7 @@ announce_regex (const char * regex) | |||
208 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 208 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
209 | "Daemon for %s starting\n", | 209 | "Daemon for %s starting\n", |
210 | policy_filename); | 210 | policy_filename); |
211 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == reannounce_task); | 211 | GNUNET_assert (NULL == reannounce_task); |
212 | copy = GNUNET_strdup (regex); | 212 | copy = GNUNET_strdup (regex); |
213 | reannounce_task = GNUNET_SCHEDULER_add_now (reannounce_regex, (void *) copy); | 213 | reannounce_task = GNUNET_SCHEDULER_add_now (reannounce_regex, (void *) copy); |
214 | } | 214 | } |