Message ID | 20190220010232.18731-23-philmd@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | chardev: Convert qemu_chr_write() to take a size_t argument | expand |
On Wed, 20 Feb 2019 02:02:29 +0100 Philippe Mathieu-Daudé <philmd@redhat.com> wrote: > Since all callers provide an unsigned value, we can safely > use a size_t argument. > > Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> > --- > hw/char/sclpconsole-lm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Cornelia Huck <cohuck@redhat.com>
diff --git a/hw/char/sclpconsole-lm.c b/hw/char/sclpconsole-lm.c index 48c76d863e..290d3118a5 100644 --- a/hw/char/sclpconsole-lm.c +++ b/hw/char/sclpconsole-lm.c @@ -191,7 +191,7 @@ static int read_event_data(SCLPEvent *event, EventBufferHeader *evt_buf_hdr, * - write console data to character layer * returns < 0 if an error occurred */ -static int write_console_data(SCLPEvent *event, const uint8_t *buf, int len) +static int write_console_data(SCLPEvent *event, const uint8_t *buf, size_t len) { SCLPConsoleLM *scon = SCLPLM_CONSOLE(event);
Since all callers provide an unsigned value, we can safely use a size_t argument. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> --- hw/char/sclpconsole-lm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)