diff options
Diffstat (limited to 'src/regex/test_regex_api.c')
-rw-r--r-- | src/regex/test_regex_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regex/test_regex_api.c b/src/regex/test_regex_api.c index a35934c9c..1603d19fa 100644 --- a/src/regex/test_regex_api.c +++ b/src/regex/test_regex_api.c | |||
@@ -45,14 +45,14 @@ static struct GNUNET_REGEX_Search *s; | |||
45 | 45 | ||
46 | static int ok = 1; | 46 | static int ok = 1; |
47 | 47 | ||
48 | static GNUNET_SCHEDULER_TaskIdentifier die_task; | 48 | static struct GNUNET_SCHEDULER_Task * die_task; |
49 | 49 | ||
50 | 50 | ||
51 | static void | 51 | static void |
52 | end (void *cls, | 52 | end (void *cls, |
53 | const struct GNUNET_SCHEDULER_TaskContext *tc) | 53 | const struct GNUNET_SCHEDULER_TaskContext *tc) |
54 | { | 54 | { |
55 | die_task = GNUNET_SCHEDULER_NO_TASK; | 55 | die_task = NULL; |
56 | GNUNET_REGEX_announce_cancel (a); | 56 | GNUNET_REGEX_announce_cancel (a); |
57 | a = NULL; | 57 | a = NULL; |
58 | GNUNET_REGEX_search_cancel (s); | 58 | GNUNET_REGEX_search_cancel (s); |
@@ -64,7 +64,7 @@ end (void *cls, | |||
64 | static void | 64 | static void |
65 | end_badly () | 65 | end_badly () |
66 | { | 66 | { |
67 | die_task = GNUNET_SCHEDULER_NO_TASK; | 67 | die_task = NULL; |
68 | FPRINTF (stderr, "%s", "Testcase failed (timeout).\n"); | 68 | FPRINTF (stderr, "%s", "Testcase failed (timeout).\n"); |
69 | GNUNET_REGEX_announce_cancel (a); | 69 | GNUNET_REGEX_announce_cancel (a); |
70 | a = NULL; | 70 | a = NULL; |