[Spice-devel] [PATCH] vdagent-virtio-port: fix two -Werror=pointer-sign

Uri Lublin uril at redhat.com
Sun Sep 8 02:38:16 PDT 2013


On 09/08/2013 11:24 AM, Alon Levy wrote:
> Signed-off-by: Alon Levy <alevy at redhat.com>
> ---
>   src/vdagent-virtio-port.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/vdagent-virtio-port.c b/src/vdagent-virtio-port.c
> index bacfa42..a5da35f 100644
> --- a/src/vdagent-virtio-port.c
> +++ b/src/vdagent-virtio-port.c
> @@ -359,7 +359,7 @@ static void vdagent_virtio_port_do_chunk(struct vdagent_virtio_port **vportp)
>       }
>   }
>   
> -static int vport_read(struct vdagent_virtio_port *vport, char *buf, int len)
> +static int vport_read(struct vdagent_virtio_port *vport, uint8_t *buf, int len)
>   {
>       if (vport->is_uds) {
>           return recv(vport->fd, buf, len, 0);
> @@ -447,7 +447,7 @@ static void vdagent_virtio_port_do_read(struct vdagent_virtio_port **vportp)
>       }
>   }
>   
> -static int vport_write(struct vdagent_virtio_port *vport, char *buf, int len)
> +static int vport_write(struct vdagent_virtio_port *vport, uint8_t *buf, int len)
>   {
>       if (vport->is_uds) {
>           return send(vport->fd, buf, len, 0);

Ack.


More information about the Spice-devel mailing list