From 61c30fcdcf392465de67f4ac21799863cb584263 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Wed, 14 Mar 2012 23:07:15 +0100 Subject: fix void* arithmetic marshaller.c:528:50: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith] --- common/marshaller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/marshaller.c') diff --git a/common/marshaller.c b/common/marshaller.c index 36aadfd..3d889a4 100644 --- a/common/marshaller.c +++ b/common/marshaller.c @@ -525,7 +525,7 @@ int spice_marshaller_fill_iovec(SpiceMarshaller *m, struct iovec *vec, if (v == n_vec) { return v; /* Not enough space in vec */ } - vec[v].iov_base = (void *)item->data + skip_bytes; + vec[v].iov_base = (uint8_t *)item->data + skip_bytes; vec[v].iov_len = item->len - skip_bytes; skip_bytes = 0; v++; -- cgit