From: Florian Obser Date: Fri, 11 Dec 2020 13:00:20 +0000 (+0100) Subject: Warning: arithmetic on a pointer to void is a GNU extension. X-Git-Tag: release-1.13.1rc1~47^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F373%2Fhead;p=thirdparty%2Funbound.git Warning: arithmetic on a pointer to void is a GNU extension. --- diff --git a/util/netevent.c b/util/netevent.c index 7e604a9fa..9eaa3c871 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -1935,7 +1935,7 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c) log_assert(c->tcp_write_and_read || sldns_buffer_remaining(buffer) > 0); log_assert(!c->tcp_write_and_read || c->tcp_write_byte_count < c->tcp_write_pkt_len + 2); if(c->tcp_write_and_read) { - r = send(fd, (void*)c->tcp_write_pkt + c->tcp_write_byte_count - 2, + r = send(fd, (void*)(c->tcp_write_pkt + c->tcp_write_byte_count - 2), c->tcp_write_pkt_len + 2 - c->tcp_write_byte_count, 0); } else { r = send(fd, (void*)sldns_buffer_current(buffer),