mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 13:42:55 +08:00
QUIC: added missing casts in iov_base assignments.
Some checks failed
buildbot / buildbot (push) Has been cancelled
Some checks failed
buildbot / buildbot (push) Has been cancelled
This is consistent with the rest of the code and fixes build on systems with non-standard definition of struct iovec (Solaris, Illumos).
This commit is contained in:
parent
5ab4f32e9d
commit
64d0795ac4
@ -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));
|
ngx_memzero(msg_control, sizeof(msg_control));
|
||||||
|
|
||||||
iov.iov_len = len;
|
iov.iov_len = len;
|
||||||
iov.iov_base = buf;
|
iov.iov_base = (void *) buf;
|
||||||
|
|
||||||
msg.msg_iov = &iov;
|
msg.msg_iov = &iov;
|
||||||
msg.msg_iovlen = 1;
|
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));
|
ngx_memzero(&msg, sizeof(struct msghdr));
|
||||||
|
|
||||||
iov.iov_len = len;
|
iov.iov_len = len;
|
||||||
iov.iov_base = buf;
|
iov.iov_base = (void *) buf;
|
||||||
|
|
||||||
msg.msg_iov = &iov;
|
msg.msg_iov = &iov;
|
||||||
msg.msg_iovlen = 1;
|
msg.msg_iovlen = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user