diff options
| author | Keith Packard <keithp@keithp.com> | 2015-02-01 16:42:01 +0100 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2015-02-01 16:42:01 +0100 | 
| commit | a138e05ae6241a6743ca9f64528124f5f6c8e0ee (patch) | |
| tree | b0cbc19b0158dd67931b5ee57ef771381b0fbc40 /src | |
| parent | 870428a909025988a8cd834755ea166e2d1e34ca (diff) | |
altos: Always include a check for stdio overflow
For some reason, the check for running out of space to record stdio
devices was disabled when only one device was expected.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/kernel/ao_stdio.c | 2 | 
1 files changed, 0 insertions, 2 deletions
diff --git a/src/kernel/ao_stdio.c b/src/kernel/ao_stdio.c index 99118137..1d65fcf5 100644 --- a/src/kernel/ao_stdio.c +++ b/src/kernel/ao_stdio.c @@ -142,10 +142,8 @@ ao_add_stdio(int (*_pollchar)(void),  	     void (*putchar)(char),  	     void (*flush)(void)) __reentrant  { -#if AO_NUM_STDIOS > 1  	if (ao_num_stdios == AO_NUM_STDIOS)  		ao_panic(AO_PANIC_STDIO); -#endif  	ao_stdios[ao_num_stdios]._pollchar = _pollchar;  	ao_stdios[ao_num_stdios].putchar = putchar;  	ao_stdios[ao_num_stdios].flush = flush;  | 
