ngtcp2: fix C89 compliance nit

This commit is contained in:
Daniel Stenberg 2022-09-27 09:06:37 +02:00
parent 58acc69e10
commit 4adee03cd4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1833,7 +1833,7 @@ static CURLcode do_sendmsg(size_t *psent, struct Curl_easy *data, int sockfd,
size_t pktlen, size_t gsolen)
{
#ifdef HAVE_SENDMSG
struct iovec msg_iov = {(void *)pkt, pktlen};
struct iovec msg_iov;
struct msghdr msg = {0};
uint8_t msg_ctrl[32];
ssize_t sent;
@ -1842,6 +1842,8 @@ static CURLcode do_sendmsg(size_t *psent, struct Curl_easy *data, int sockfd,
#endif
*psent = 0;
msg_iov.iov_base = (uint8_t *)pkt;
msg_iov.iov_len = pktlen;
msg.msg_iov = &msg_iov;
msg.msg_iovlen = 1;