From 0871bca9c72bf3e26dd7e75f72aa49644d1485b9 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Wed, 4 Apr 2018 10:48:14 +0200 Subject: [PATCH] Avoid pointer arithmetic on "void *" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following warning (with -Wpedantic enabled): pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] --- app/src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/net.c b/app/src/net.c index b961c8eb..83aa7035 100644 --- a/app/src/net.c +++ b/app/src/net.c @@ -94,7 +94,7 @@ ssize_t net_send_all(socket_t socket, const void *buf, size_t len) { return -1; } len -= w; - buf += w; + buf = (char *) buf + w; } return w; }