diff options
Diffstat (limited to 'src/namestore/test_namestore_api_lookup_public.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_public.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namestore/test_namestore_api_lookup_public.c b/src/namestore/test_namestore_api_lookup_public.c index df54f906c..7d4c2e69d 100644 --- a/src/namestore/test_namestore_api_lookup_public.c +++ b/src/namestore/test_namestore_api_lookup_public.c | |||
@@ -39,7 +39,7 @@ static struct GNUNET_NAMESTORE_Handle *nsh; | |||
39 | 39 | ||
40 | static struct GNUNET_NAMECACHE_Handle *nch; | 40 | static struct GNUNET_NAMECACHE_Handle *nch; |
41 | 41 | ||
42 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; | 42 | static struct GNUNET_SCHEDULER_Task * endbadly_task; |
43 | 43 | ||
44 | static struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey; | 44 | static struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey; |
45 | 45 | ||
@@ -139,17 +139,17 @@ name_lookup_proc (void *cls, | |||
139 | ncqe = NULL; | 139 | ncqe = NULL; |
140 | GNUNET_assert (NULL != cls); | 140 | GNUNET_assert (NULL != cls); |
141 | 141 | ||
142 | if (endbadly_task != GNUNET_SCHEDULER_NO_TASK) | 142 | if (endbadly_task != NULL) |
143 | { | 143 | { |
144 | GNUNET_SCHEDULER_cancel (endbadly_task); | 144 | GNUNET_SCHEDULER_cancel (endbadly_task); |
145 | endbadly_task = GNUNET_SCHEDULER_NO_TASK; | 145 | endbadly_task = NULL; |
146 | } | 146 | } |
147 | 147 | ||
148 | if (NULL == block) | 148 | if (NULL == block) |
149 | { | 149 | { |
150 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 150 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
151 | _("Namestore returned no block\n")); | 151 | _("Namestore returned no block\n")); |
152 | if (endbadly_task != GNUNET_SCHEDULER_NO_TASK) | 152 | if (endbadly_task != NULL) |
153 | GNUNET_SCHEDULER_cancel (endbadly_task); | 153 | GNUNET_SCHEDULER_cancel (endbadly_task); |
154 | endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL); | 154 | endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL); |
155 | return; | 155 | return; |