summaryrefslogtreecommitdiff
path: root/src/drivers/ao_btm.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-12-07 10:05:51 -0800
committerKeith Packard <keithp@keithp.com>2012-12-07 10:12:19 -0800
commitc10f9a438ed5789479d21c78153ca7f14c05534c (patch)
treef92e652d2d478da3636d7cf77383df1e1f08c7c5 /src/drivers/ao_btm.c
parent16fd9009d8b034fd8d208115317f65fabe10072a (diff)
altos: fix functions calling pollchar to use 'int' to hold the value
AO_READ_AGAIN doesn't fit in a char anymore now that stdio is 8-bit clean, everyone using pollchar must use an 'int' variable to capture the whole value from pollchar. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_btm.c')
-rw-r--r--src/drivers/ao_btm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/ao_btm.c b/src/drivers/ao_btm.c
index f3816047..c862200a 100644
--- a/src/drivers/ao_btm.c
+++ b/src/drivers/ao_btm.c
@@ -120,7 +120,7 @@ uint8_t
ao_btm_get_line(void)
{
uint8_t ao_btm_reply_len = 0;
- char c;
+ int c;
for (;;) {