aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksei Bavshin <a.bavshin@nginx.com>2025-01-27 10:33:25 -0800
committerpluknet <pluknet@nginx.com>2025-02-05 20:40:47 +0400
commit2e42c1e29e447c6716802bf62a7a40a390444e6b (patch)
tree1b2d85bce5cc6d02e9baf9979e74f76efa9d022d
parent9cda58178bf6d552829d20fedee1d4df564f5629 (diff)
downloadnginx-2e42c1e29e447c6716802bf62a7a40a390444e6b.tar.gz
nginx-2e42c1e29e447c6716802bf62a7a40a390444e6b.zip
QUIC: added missing casts in iov_base assignments.
This is consistent with the rest of the code and fixes build on systems with non-standard definition of struct iovec (Solaris, Illumos).
-rw-r--r--src/event/quic/ngx_event_quic_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event/quic/ngx_event_quic_output.c b/src/event/quic/ngx_event_quic_output.c
index ce6aaab22..f087e2bfa 100644
--- a/src/event/quic/ngx_event_quic_output.c
+++ b/src/event/quic/ngx_event_quic_output.c
@@ -411,7 +411,7 @@ ngx_quic_send_segments(ngx_connection_t *c, u_char *buf, size_t len,
ngx_memzero(msg_control, sizeof(msg_control));
iov.iov_len = len;
- iov.iov_base = buf;
+ iov.iov_base = (void *) buf;
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
@@ -699,7 +699,7 @@ ngx_quic_send(ngx_connection_t *c, u_char *buf, size_t len,
ngx_memzero(&msg, sizeof(struct msghdr));
iov.iov_len = len;
- iov.iov_base = buf;
+ iov.iov_base = (void *) buf;
msg.msg_iov = &iov;
msg.msg_iovlen = 1;