summaryrefslogtreecommitdiffstats
path: root/common/marshaller.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-14 23:07:15 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:30:24 +0100
commit61c30fcdcf392465de67f4ac21799863cb584263 (patch)
tree7bec2a313d8d2d18e0bb1f25f6deb88871127555 /common/marshaller.c
parentf87bb23ad2a5caf5c1823367dc2248a83d91f3c0 (diff)
downloadspice-common-61c30fcdcf392465de67f4ac21799863cb584263.tar.gz
spice-common-61c30fcdcf392465de67f4ac21799863cb584263.tar.xz
spice-common-61c30fcdcf392465de67f4ac21799863cb584263.zip
fix void* arithmetic
marshaller.c:528:50: error: pointer of type 'void *' used in arithmetic [-Werror=pointer-arith]
Diffstat (limited to 'common/marshaller.c')
-rw-r--r--common/marshaller.c2
1 files changed, 1 insertions, 1 deletions
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++;