Fix warnings.
[bertos.git] / bertos / kern / proc_p.h
index 54ea3710acb4f5ca4c72831451b82dc8e9cf01bd..961f2473d7277d2d135086d3f7a3cc8828dcd13c 100644 (file)
@@ -152,9 +152,9 @@ INLINE void SCHED_CHANGE_PRI(struct Process *proc)
        PriNode *pos = NULL;
        FOREACH_NODE(n, &ProcReadyList)
        {
-               if (n == &proc->link)
+               if (n == &proc->link.link)
                {
-                       pos = n;
+                       pos = (PriNode *)n;
                        break;
                }
        }