aboutsummaryrefslogtreecommitdiff
path: root/src/exit/gnunet-daemon-exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exit/gnunet-daemon-exit.c')
-rw-r--r--src/exit/gnunet-daemon-exit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index a76f506ee..1f8014ce2 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -422,7 +422,7 @@ static struct GNUNET_DHT_Handle *dht;
422/** 422/**
423 * Task for doing DHT PUTs to advertise exit service. 423 * Task for doing DHT PUTs to advertise exit service.
424 */ 424 */
425static GNUNET_SCHEDULER_TaskIdentifier dht_task; 425static struct GNUNET_SCHEDULER_Task * dht_task;
426 426
427/** 427/**
428 * Advertisement message we put into the DHT to advertise us 428 * Advertisement message we put into the DHT to advertise us
@@ -3198,10 +3198,10 @@ cleanup (void *cls,
3198 GNUNET_free (peer_key); 3198 GNUNET_free (peer_key);
3199 peer_key = NULL; 3199 peer_key = NULL;
3200 } 3200 }
3201 if (GNUNET_SCHEDULER_NO_TASK != dht_task) 3201 if (NULL != dht_task)
3202 { 3202 {
3203 GNUNET_SCHEDULER_cancel (dht_task); 3203 GNUNET_SCHEDULER_cancel (dht_task);
3204 dht_task = GNUNET_SCHEDULER_NO_TASK; 3204 dht_task = NULL;
3205 } 3205 }
3206 if (NULL != dht_put) 3206 if (NULL != dht_put)
3207 { 3207 {
@@ -3445,7 +3445,7 @@ do_dht_put (void *cls,
3445{ 3445{
3446 struct GNUNET_TIME_Absolute expiration; 3446 struct GNUNET_TIME_Absolute expiration;
3447 3447
3448 dht_task = GNUNET_SCHEDULER_NO_TASK; 3448 dht_task = NULL;
3449 expiration = GNUNET_TIME_absolute_ntoh (dns_advertisement.expiration_time); 3449 expiration = GNUNET_TIME_absolute_ntoh (dns_advertisement.expiration_time);
3450 if (GNUNET_TIME_absolute_get_remaining (expiration).rel_value_us < 3450 if (GNUNET_TIME_absolute_get_remaining (expiration).rel_value_us <
3451 GNUNET_TIME_UNIT_HOURS.rel_value_us) 3451 GNUNET_TIME_UNIT_HOURS.rel_value_us)