[nginx] QUIC: added missing casts in iov_base assignments.
noreply at nginx.com
noreply at nginx.com
Tue Jan 28 16:01:02 UTC 2025
details: https://github.com/nginx/nginx/commit/64d0795ac41836b6be8fcceba68f1dbb62b4035a
branches: master
commit: 64d0795ac41836b6be8fcceba68f1dbb62b4035a
user: Aleksei Bavshin <a.bavshin at nginx.com>
date: Mon, 27 Jan 2025 10:33:25 -0800
description:
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).
---
src/event/quic/ngx_event_quic_output.c | 4 ++--
1 file 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;
More information about the nginx-devel
mailing list