summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2013-09-08 11:24:15 +0300
committerAlon Levy <alevy@redhat.com>2013-10-03 20:44:50 +0300
commit6e1e36e537d1dba502c972ecf44c7052b1d5eaac (patch)
tree8921861af39d61e028ea9cfb269edd27f7dcc724
parentad6ea7594a11d8a35be84a8ae2e8403ea3344a3b (diff)
downloadvd_agent-6e1e36e537d1dba502c972ecf44c7052b1d5eaac.tar.gz
vd_agent-6e1e36e537d1dba502c972ecf44c7052b1d5eaac.tar.xz
vd_agent-6e1e36e537d1dba502c972ecf44c7052b1d5eaac.zip
vdagent-virtio-port: fix two -Werror=pointer-sign
Signed-off-by: Alon Levy <alevy@redhat.com>
-rw-r--r--src/vdagent-virtio-port.c4
1 files 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);