diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-12-03 16:58:06 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-12-03 16:58:06 +0400 |
commit | f01aa530b9f818d9abdc204d570479312f99c455 (patch) | |
tree | 43eb591f872f492f582ae2bb2b8a96127efdbaf9 | |
parent | 4eed780cf7b52124999f1fe070ec54dd225584d7 (diff) |
Fix -Wpointer-arith warningswarning-fixes
Fixes:
warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r-- | vtest/vtest.h | 2 | ||||
-rw-r--r-- | vtest/vtest_renderer.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vtest/vtest.h b/vtest/vtest.h index f35e30a..29d5ad6 100644 --- a/vtest/vtest.h +++ b/vtest/vtest.h @@ -28,7 +28,7 @@ #include <errno.h> struct vtest_buffer { - const void *buffer; + const char *buffer; int size; }; diff --git a/vtest/vtest_renderer.c b/vtest/vtest_renderer.c index 57772f2..094d0fe 100644 --- a/vtest/vtest_renderer.c +++ b/vtest/vtest_renderer.c @@ -118,7 +118,7 @@ static void free_iovec(void *value) static int vtest_block_write(int fd, void *buf, int size) { - void *ptr = buf; + char *ptr = buf; int left; int ret; left = size; @@ -139,7 +139,7 @@ static int vtest_block_write(int fd, void *buf, int size) int vtest_block_read(struct vtest_input *input, void *buf, int size) { int fd = input->data.fd; - void *ptr = buf; + char *ptr = buf; int left; int ret; static int savefd = -1; |