[U-Boot] [PATCH] serial: sandbox: use ssize_t to match os_read

Simon Glass sjg at chromium.org
Wed Oct 26 18:10:11 CEST 2011


On Wed, Oct 26, 2011 at 3:21 AM, Mike Frysinger <vapier at gentoo.org> wrote:
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>

Acked-by: Simon Glass <sjg at chromium.org>

> ---
>  drivers/serial/sandbox.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c
> index cae6c94..814a0f9 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;
> --
> 1.7.6.1
>
>


More information about the U-Boot mailing list