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

Alon Levy alevy at redhat.com
Sun Sep 8 01:24:31 PDT 2013


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);
-- 
1.8.3.1



More information about the Spice-devel mailing list