Browse Source

HRT thread: Do not make implicit assumptions about struct members

sbg
Lorenz Meier 9 years ago
parent
commit
0a883fd11d
  1. 2
      src/platforms/posix/work_queue/hrt_thread.c

2
src/platforms/posix/work_queue/hrt_thread.c

@ -143,7 +143,7 @@ static void hrt_work_process() @@ -143,7 +143,7 @@ static void hrt_work_process()
if (elapsed >= work->delay) {
/* Remove the ready-to-execute work from the list */
(void)dq_rem((struct dq_entry_s *)work, &wqueue->q);
(void)dq_rem((struct dq_entry_s *)&(work->dq), &(wqueue->q));
//PX4_INFO("Dequeued work=%p", work);
/* Extract the work description from the entry (in case the work

Loading…
Cancel
Save