From: Mike Frysinger Date: Wed, 26 Oct 2011 00:21:01 +0000 (+0000) Subject: serial: sandbox: use ssize_t to match os_read X-Git-Tag: v2011.12-rc1~312 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec8f0b9024adc1075bb514edefbf186e63f84268;p=oweals%2Fu-boot.git serial: sandbox: use ssize_t to match os_read Signed-off-by: Mike Frysinger Acked-by: Simon Glass --- diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index cae6c9411c..814a0f9e7f 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -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;