From: Keith Packard Date: Wed, 20 Apr 2016 03:19:59 +0000 (-0400) Subject: altos: avoid mixed declarations and code in ao_task.c X-Git-Tag: 1.6.3~2^2~38 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=4db6074bb15c66bd23c513e1e41b408e5408cff8;p=fw%2Faltos altos: avoid mixed declarations and code in ao_task.c sdcc can't handle this. Signed-off-by: Keith Packard --- diff --git a/src/kernel/ao_task.c b/src/kernel/ao_task.c index 104d1074..e430edc6 100644 --- a/src/kernel/ao_task.c +++ b/src/kernel/ao_task.c @@ -442,10 +442,12 @@ ao_wakeup(__xdata void *wchan) __reentrant } ao_arch_irqrestore(flags); #else + { uint8_t i; for (i = 0; i < ao_num_tasks; i++) if (ao_tasks[i]->wchan == wchan) ao_tasks[i]->wchan = NULL; + } #endif ao_check_stack(); }