aboutsummaryrefslogtreecommitdiff
path: root/src/sensor/gnunet-service-sensor_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sensor/gnunet-service-sensor_update.c')
-rw-r--r--src/sensor/gnunet-service-sensor_update.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sensor/gnunet-service-sensor_update.c b/src/sensor/gnunet-service-sensor_update.c
index aa7716f1c..a6390b6dd 100644
--- a/src/sensor/gnunet-service-sensor_update.c
+++ b/src/sensor/gnunet-service-sensor_update.c
@@ -168,7 +168,7 @@ static int updating;
168/** 168/**
169 * GNUnet scheduler task that starts the update check process. 169 * GNUnet scheduler task that starts the update check process.
170 */ 170 */
171static GNUNET_SCHEDULER_TaskIdentifier update_task; 171static struct GNUNET_SCHEDULER_Task * update_task;
172 172
173/** 173/**
174 * Pointer to service reset function called when we have new sensor updates. 174 * Pointer to service reset function called when we have new sensor updates.
@@ -237,10 +237,10 @@ SENSOR_update_stop ()
237 237
238 up_default = NULL; 238 up_default = NULL;
239 up = up_head; 239 up = up_head;
240 if (GNUNET_SCHEDULER_NO_TASK != update_task) 240 if (NULL != update_task)
241 { 241 {
242 GNUNET_SCHEDULER_cancel (update_task); 242 GNUNET_SCHEDULER_cancel (update_task);
243 update_task = GNUNET_SCHEDULER_NO_TASK; 243 update_task = NULL;
244 } 244 }
245 while (NULL != up) 245 while (NULL != up)
246 { 246 {
@@ -390,7 +390,7 @@ check_for_updates (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
390 struct GNUNET_MessageHeader *msg; 390 struct GNUNET_MessageHeader *msg;
391 size_t msg_size; 391 size_t msg_size;
392 392
393 update_task = GNUNET_SCHEDULER_NO_TASK; 393 update_task = NULL;
394 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) 394 if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN))
395 return; 395 return;
396 if (GNUNET_YES == updating) 396 if (GNUNET_YES == updating)