Fix warnings.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 24 Aug 2009 17:50:55 +0000 (17:50 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 24 Aug 2009 17:50:55 +0000 (17:50 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2780 38d2e660-2303-0410-9eaa-f027e97ec537

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;
                }
        }