aboutsummaryrefslogtreecommitdiff
path: root/src/nse/gnunet-nse.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/nse/gnunet-nse.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/nse/gnunet-nse.c')
-rw-r--r--src/nse/gnunet-nse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nse/gnunet-nse.c b/src/nse/gnunet-nse.c
index ec2ad26d3..8fb5afde3 100644
--- a/src/nse/gnunet-nse.c
+++ b/src/nse/gnunet-nse.c
@@ -45,7 +45,7 @@ static struct GNUNET_CLIENT_TestHandle *test;
45/** 45/**
46 * Shutdown task 46 * Shutdown task
47 */ 47 */
48static GNUNET_SCHEDULER_TaskIdentifier shutdown_task; 48static struct GNUNET_SCHEDULER_Task * shutdown_task;
49 49
50/** 50/**
51 * The program status; 0 for success. 51 * The program status; 0 for success.
@@ -62,7 +62,7 @@ static int status;
62static void 62static void
63do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 63do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
64{ 64{
65 shutdown_task = GNUNET_SCHEDULER_NO_TASK; 65 shutdown_task = NULL;
66 if (NULL != test) 66 if (NULL != test)
67 GNUNET_CLIENT_service_test_cancel (test); 67 GNUNET_CLIENT_service_test_cancel (test);
68 if (NULL != nse) 68 if (NULL != nse)