]> git.kaiwu.me - nginx.git/commitdiff
QUIC: added missing casts in iov_base assignments.
authorAleksei Bavshin <a.bavshin@nginx.com>
Mon, 27 Jan 2025 18:33:25 +0000 (10:33 -0800)
committerpluknet <pluknet@nginx.com>
Wed, 5 Feb 2025 16:40:47 +0000 (20:40 +0400)
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

index ce6aaab227db4fd38664da359393d377d0b79f27..f087e2bfa6c3e1bbe52465b317054c9991338b1f 100644 (file)
@@ -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;