diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:10:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:10:47 +0000 |
commit | f1f603c7d0b3f03dca46a4f313472288eb080eb1 (patch) | |
tree | 3a29966b02dfb83e0a8a8d5c42b3116380209fb0 /src/namestore/test_namestore_api_remove_not_existing_record.c | |
parent | 53cd5b8eda2fa8db86b0907a62a39598981d008a (diff) | |
download | gnunet-f1f603c7d0b3f03dca46a4f313472288eb080eb1.tar.gz gnunet-f1f603c7d0b3f03dca46a4f313472288eb080eb1.zip |
making GNUNET_SCHEDULER_cancel() perform in O(1) instead of O(n) to help or even fully address #3247
Diffstat (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index b87aec6a9..9e08efa1b 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -36,7 +36,7 @@ | |||
36 | 36 | ||
37 | static struct GNUNET_NAMESTORE_Handle *nsh; | 37 | static struct GNUNET_NAMESTORE_Handle *nsh; |
38 | 38 | ||
39 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; | 39 | static struct GNUNET_SCHEDULER_Task * endbadly_task; |
40 | 40 | ||
41 | static struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey; | 41 | static struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey; |
42 | 42 | ||
@@ -98,10 +98,10 @@ put_cont (void *cls, int32_t success, const char *emsg) | |||
98 | { | 98 | { |
99 | GNUNET_assert (NULL != cls); | 99 | GNUNET_assert (NULL != cls); |
100 | nsqe = NULL; | 100 | nsqe = NULL; |
101 | if (endbadly_task != GNUNET_SCHEDULER_NO_TASK) | 101 | if (endbadly_task != NULL) |
102 | { | 102 | { |
103 | GNUNET_SCHEDULER_cancel (endbadly_task); | 103 | GNUNET_SCHEDULER_cancel (endbadly_task); |
104 | endbadly_task = GNUNET_SCHEDULER_NO_TASK; | 104 | endbadly_task = NULL; |
105 | } | 105 | } |
106 | 106 | ||
107 | switch (success) { | 107 | switch (success) { |