]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Warning: arithmetic on a pointer to void is a GNU extension. 373/head
authorFlorian Obser <florian@narrans.de>
Fri, 11 Dec 2020 13:00:20 +0000 (14:00 +0100)
committerFlorian Obser <florian@narrans.de>
Fri, 11 Dec 2020 13:00:20 +0000 (14:00 +0100)
util/netevent.c

index 7e604a9fad3eb1abd76ff1c0ae7060c6c17279d2..9eaa3c87125783374162d21334e69ef246572f20 100644 (file)
@@ -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),