Re: [Spice-devel] [PATCH vdagent-linux 3/6] vport: return void in vdagent_virtio_port_write{, _start}()

2018-09-07 Thread Victor Toso
On Tue, Sep 04, 2018 at 06:40:48PM +0200, Jakub Janků wrote: > The functions would return -1 only if malloc() failed, otherwise 0. > Since malloc() was replaced by g_malloc(), which terminates > the program if the allocation fails, return void instead. > > Signed-off-by: Jakub Janků Acked-by:

[Spice-devel] [PATCH vdagent-linux 3/6] vport: return void in vdagent_virtio_port_write{, _start}()

2018-09-04 Thread Jakub Janků
The functions would return -1 only if malloc() failed, otherwise 0. Since malloc() was replaced by g_malloc(), which terminates the program if the allocation fails, return void instead. Signed-off-by: Jakub Janků --- src/vdagentd/virtio-port.c | 15 +-- src/vdagentd/virtio-port.h |