diff options
Diffstat (limited to 'src/namestore/test_namestore_api_monitoring.c')
-rw-r--r-- | src/namestore/test_namestore_api_monitoring.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_monitoring.c b/src/namestore/test_namestore_api_monitoring.c index f7eb5fd89..0477f23de 100644 --- a/src/namestore/test_namestore_api_monitoring.c +++ b/src/namestore/test_namestore_api_monitoring.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | static struct GNUNET_NAMESTORE_Handle * nsh; | 33 | static struct GNUNET_NAMESTORE_Handle * nsh; |
34 | 34 | ||
35 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; | 35 | static struct GNUNET_SCHEDULER_Task * endbadly_task; |
36 | 36 | ||
37 | static struct GNUNET_CRYPTO_EcdsaPrivateKey * privkey; | 37 | static struct GNUNET_CRYPTO_EcdsaPrivateKey * privkey; |
38 | 38 | ||
@@ -196,10 +196,10 @@ zone_proc (void *cls, | |||
196 | 196 | ||
197 | if (2 == ++returned_records) | 197 | if (2 == ++returned_records) |
198 | { | 198 | { |
199 | if (endbadly_task != GNUNET_SCHEDULER_NO_TASK) | 199 | if (endbadly_task != NULL) |
200 | { | 200 | { |
201 | GNUNET_SCHEDULER_cancel (endbadly_task); | 201 | GNUNET_SCHEDULER_cancel (endbadly_task); |
202 | endbadly_task = GNUNET_SCHEDULER_NO_TASK; | 202 | endbadly_task = NULL; |
203 | } | 203 | } |
204 | if (GNUNET_YES == fail) | 204 | if (GNUNET_YES == fail) |
205 | GNUNET_SCHEDULER_add_now (&endbadly, NULL); | 205 | GNUNET_SCHEDULER_add_now (&endbadly, NULL); |