aboutsummaryrefslogtreecommitdiff
path: root/src/nat/test_nat_test.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/nat/test_nat_test.c
parent53cd5b8eda2fa8db86b0907a62a39598981d008a (diff)
making GNUNET_SCHEDULER_cancel() perform in O(1) instead of O(n) to help or even fully address #3247
Diffstat (limited to 'src/nat/test_nat_test.c')
-rw-r--r--src/nat/test_nat_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nat/test_nat_test.c b/src/nat/test_nat_test.c
index d32015b560..a5e6ba2098 100644
--- a/src/nat/test_nat_test.c
+++ b/src/nat/test_nat_test.c
@@ -36,7 +36,7 @@ static int ret = 1;
static struct GNUNET_NAT_Test *tst;
-static GNUNET_SCHEDULER_TaskIdentifier tsk;
+static struct GNUNET_SCHEDULER_Task * tsk;
static void
@@ -54,7 +54,7 @@ report_result (void *cls,
GNUNET_NAT_test_stop (tst);
tst = NULL;
GNUNET_SCHEDULER_cancel (tsk);
- tsk = GNUNET_SCHEDULER_NO_TASK;
+ tsk = NULL;
}
@@ -62,7 +62,7 @@ static void
failed_timeout (void *cls,
const struct GNUNET_SCHEDULER_TaskContext *tc)
{
- tsk = GNUNET_SCHEDULER_NO_TASK;
+ tsk = NULL;
fprintf (stderr,
"NAT test failed to terminate on timeout\n");
ret = 2;