ngtcp2: fix C89 compliance nit
This commit is contained in:
parent
58acc69e10
commit
4adee03cd4
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user