Factor out from cfg_kern kernel related default.
[bertos.git] / bertos / kern / monitor.c
index 14fac07b7323a007b9e67c773fceea932e5fe5aa..362bb82dd2a077f12d1e97f8423bb7c3ec052e5d 100644 (file)
  * invalidate any other reasons why the executable file might be covered by
  * the GNU General Public License.
  *
- * Copyright 2004 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2004, 2008 Develer S.r.l. (http://www.develer.com/)
  *
  * -->
  *
  * \brief Monitor to check for stack overflows
  *
  * \version $Id$
- *
  * \author Giovanni Bajo <rasky@develer.com>
  */
 
@@ -67,7 +66,7 @@ void monitor_add(Process *proc, const char *name)
 }
 
 
-void monitor_remove(Processproc)
+void monitor_remove(Process *proc)
 {
        REMOVE(&proc->monitor.link);
 }
@@ -83,9 +82,9 @@ void monitor_rename(Process *proc, const char *name)
 
 size_t monitor_checkStack(cpustack_t *stack_base, size_t stack_size)
 {
-       cpustack_tbeg;
-       cpustack_tcur;
-       cpustack_tend;
+       cpustack_t *beg;
+       cpustack_t *cur;
+       cpustack_t *end;
        size_t sp_free;
 
        beg = stack_base;