HRT thread: Do not make implicit assumptions about struct members

This commit is contained in:
Lorenz Meier
2015-11-02 12:11:10 +01:00
parent 3af906b9a8
commit 0a883fd11d
+1 -1
View File
@@ -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