diff options
Diffstat (limited to 'src/psycstore/test_psycstore.c')
-rw-r--r-- | src/psycstore/test_psycstore.c | 6 |
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 | */ |
57 | static GNUNET_SCHEDULER_TaskIdentifier end_badly_task; | 57 | static struct GNUNET_SCHEDULER_Task * end_badly_task; |
58 | 58 | ||
59 | static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key; | 59 | static struct GNUNET_CRYPTO_EddsaPrivateKey *channel_key; |
60 | static struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key; | 60 | static struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key; |
@@ -143,10 +143,10 @@ end_normally (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
143 | static void | 143 | static void |
144 | end () | 144 | end () |
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); |