aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore/test_psycstore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/psycstore/test_psycstore.c')
-rw-r--r--src/psycstore/test_psycstore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/psycstore/test_psycstore.c b/src/psycstore/test_psycstore.c
index 125e64f58..8ece3c1b7 100644
--- a/src/psycstore/test_psycstore.c
+++ b/src/psycstore/test_psycstore.c
@@ -54,7 +54,7 @@ static struct GNUNET_PSYCSTORE_OperationHandle *op;
54/** 54/**
55 * Handle for task for timeout termination. 55 * Handle for task for timeout termination.
56 */ 56 */
57static GNUNET_SCHEDULER_TaskIdentifier end_badly_task; 57static struct GNUNET_SCHEDULER_Task * end_badly_task;
58 58
59static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key; 59static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key;
60static struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key; 60static struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key;
@@ -143,10 +143,10 @@ end_normally (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
143static void 143static void
144end () 144end ()
145{ 145{
146 if (end_badly_task != GNUNET_SCHEDULER_NO_TASK) 146 if (end_badly_task != NULL)
147 { 147 {
148 GNUNET_SCHEDULER_cancel (end_badly_task); 148 GNUNET_SCHEDULER_cancel (end_badly_task);
149 end_badly_task = GNUNET_SCHEDULER_NO_TASK; 149 end_badly_task = NULL;
150 } 150 }
151 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MILLISECONDS, 151 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MILLISECONDS,
152 &end_normally, NULL); 152 &end_normally, NULL);