diff options
Diffstat (limited to 'src/nse/test_nse_api.c')
-rw-r--r-- | src/nse/test_nse_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nse/test_nse_api.c b/src/nse/test_nse_api.c index 324d4ff16..5eff16c79 100644 --- a/src/nse/test_nse_api.c +++ b/src/nse/test_nse_api.c | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | static struct GNUNET_NSE_Handle *h; | 30 | static struct GNUNET_NSE_Handle *h; |
31 | 31 | ||
32 | static GNUNET_SCHEDULER_TaskIdentifier die_task; | 32 | static struct GNUNET_SCHEDULER_Task * die_task; |
33 | 33 | ||
34 | 34 | ||
35 | /** | 35 | /** |
@@ -69,7 +69,7 @@ check_nse_message (void *cls, struct GNUNET_TIME_Absolute timestamp, | |||
69 | estimate, std_dev); | 69 | estimate, std_dev); |
70 | /* Fantastic check below. Expect NaN, the only thing not equal to itself. */ | 70 | /* Fantastic check below. Expect NaN, the only thing not equal to itself. */ |
71 | (*ok) = 0; | 71 | (*ok) = 0; |
72 | if (die_task != GNUNET_SCHEDULER_NO_TASK) | 72 | if (die_task != NULL) |
73 | GNUNET_SCHEDULER_cancel (die_task); | 73 | GNUNET_SCHEDULER_cancel (die_task); |
74 | die_task = GNUNET_SCHEDULER_add_now (&end_test, NULL); | 74 | die_task = GNUNET_SCHEDULER_add_now (&end_test, NULL); |
75 | } | 75 | } |