[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH] chardev: Convert IOReadHandler to read an unsigne
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-ppc] [PATCH] chardev: Convert IOReadHandler to read an unsigned number of bytes |
Date: |
Thu, 11 Oct 2018 16:08:48 +0200 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Thu 11 Oct 2018 03:14:13 PM CEST, Philippe Mathieu-Daudé wrote:
> diff --git a/hw/char/ipoctal232.c b/hw/char/ipoctal232.c
> index 5e09caf851..ba3f3408a2 100644
> --- a/hw/char/ipoctal232.c
> +++ b/hw/char/ipoctal232.c
> @@ -461,14 +461,14 @@ static void mem_write8(IPackDevice *ip, uint32_t addr,
> uint8_t val)
> }
> }
>
> -static int hostdev_can_receive(void *opaque)
> +static size_t hostdev_can_receive(void *opaque)
> {
> SCC2698Channel *ch = opaque;
> int available_bytes = RX_FIFO_SIZE - ch->rx_pending;
> return ch->rx_enabled ? available_bytes : 0;
> }
>
> -static void hostdev_receive(void *opaque, const uint8_t *buf, int size)
> +static void hostdev_receive(void *opaque, const uint8_t *buf, size_t size)
> {
> SCC2698Channel *ch = opaque;
> IPOctalState *dev = ch->ipoctal;
Acked-by: Alberto Garcia <address@hidden>
Berto