altos: ao_packet_getchar needs to return 'int' so AO_READ_AGAIN works
authorKeith Packard <keithp@keithp.com>
Sat, 7 Feb 2015 21:09:18 +0000 (13:09 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Feb 2015 21:09:18 +0000 (13:09 -0800)
commit0d08c427188f7b748d9ea7651143bc843e9c2691
treeec80d826ad05b8fa8a924c800aef0aa3a2cfbfae
parent4a5c64bef6952f25cadebc3e1f9909a5f513e015
altos: ao_packet_getchar needs to return 'int' so AO_READ_AGAIN works

With ao_packet_getchar returning 'char', AO_READ_AGAIN would get
converted to 0xff instead of -1 on return, making ao_packet_echo
either produce a bogus character on output, breaking command
responses, or wedge and never exit when the link was dropped.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_packet_master.c