Fix warning.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 9 Aug 2008 10:04:39 +0000 (10:04 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 9 Aug 2008 10:04:39 +0000 (10:04 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1584 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/monitor.c

index 9dcc38b0b666543e116f75909f7d4a0817b909dd..1263401a3a807ffc1473b804bf0345bcda003236 100644 (file)
@@ -143,7 +143,7 @@ static void NORETURN monitor(void)
                proc_forbid();
                FOREACH_NODE(node, &MonitorProcs)
                {
-                       Process *p = containerof(node, Process, monitor.link);
+                       p = containerof(node, Process, monitor.link);
                        size_t free = monitor_checkStack(p->stack_base, p->stack_size);
 
                        if (free < 0x20)