serial: sandbox: use ssize_t to match os_read

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Mike Frysinger 2011-10-26 00:21:01 +00:00 committed by Wolfgang Denk
parent 5778d54afc
commit ec8f0b9024

View File

@ -50,7 +50,7 @@ void serial_puts(const char *str)
int serial_getc(void)
{
char buf;
int count;
ssize_t count;
count = os_read(0, &buf, 1);
return count == 1 ? buf : 0;