aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_store.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-24 01:10:47 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-24 01:10:47 +0000
commitf1f603c7d0b3f03dca46a4f313472288eb080eb1 (patch)
tree3a29966b02dfb83e0a8a8d5c42b3116380209fb0 /src/namestore/test_namestore_api_store.c
parent53cd5b8eda2fa8db86b0907a62a39598981d008a (diff)
downloadgnunet-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_store.c')
-rw-r--r--src/namestore/test_namestore_api_store.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_api_store.c b/src/namestore/test_namestore_api_store.c
index 5fd0e9b81..2eea1b0bd 100644
--- a/src/namestore/test_namestore_api_store.c
+++ b/src/namestore/test_namestore_api_store.c
@@ -36,7 +36,7 @@
36 36
37static struct GNUNET_NAMESTORE_Handle *nsh; 37static struct GNUNET_NAMESTORE_Handle *nsh;
38 38
39static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; 39static struct GNUNET_SCHEDULER_Task * endbadly_task;
40 40
41static struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey; 41static struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey;
42 42
@@ -104,7 +104,7 @@ put_cont (void *cls, int32_t success, const char *emsg)
104 name, 104 name,
105 (success == GNUNET_OK) ? "SUCCESS" : "FAIL"); 105 (success == GNUNET_OK) ? "SUCCESS" : "FAIL");
106 GNUNET_SCHEDULER_cancel (endbadly_task); 106 GNUNET_SCHEDULER_cancel (endbadly_task);
107 endbadly_task = GNUNET_SCHEDULER_NO_TASK; 107 endbadly_task = NULL;
108 GNUNET_SCHEDULER_add_now (&end, NULL); 108 GNUNET_SCHEDULER_add_now (&end, NULL);
109} 109}
110 110