aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksei Bavshin <a.bavshin@nginx.com>2025-01-27 10:33:25 -0800
committerAleksei Bavshin <a.bavshin@f5.com>2025-01-28 08:00:42 -0800
commit64d0795ac41836b6be8fcceba68f1dbb62b4035a (patch)
tree8f9a7bae336e0a8e45e460e6a420680eaaefab17
parent5ab4f32e9de1d0c8523d3a22fc20a3067e20b68d (diff)
downloadnginx-64d0795ac41836b6be8fcceba68f1dbb62b4035a.tar.gz
nginx-64d0795ac41836b6be8fcceba68f1dbb62b4035a.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;