mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 22:57:08 +00:00
Warning: arithmetic on a pointer to void is a GNU extension.
This commit is contained in:
parent
7077660932
commit
15e1b16da0
@ -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 || sldns_buffer_remaining(buffer) > 0);
|
||||||
log_assert(!c->tcp_write_and_read || c->tcp_write_byte_count < c->tcp_write_pkt_len + 2);
|
log_assert(!c->tcp_write_and_read || c->tcp_write_byte_count < c->tcp_write_pkt_len + 2);
|
||||||
if(c->tcp_write_and_read) {
|
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);
|
c->tcp_write_pkt_len + 2 - c->tcp_write_byte_count, 0);
|
||||||
} else {
|
} else {
|
||||||
r = send(fd, (void*)sldns_buffer_current(buffer),
|
r = send(fd, (void*)sldns_buffer_current(buffer),
|
||||||
|
Loading…
Reference in New Issue
Block a user