Mercurial > dropbear
comparison netio.c @ 1121:bb3a03feb31f
Merge pull request #13 from gazoo74/fix-warnings
Fix warnings
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 04 Jun 2015 22:25:28 +0800 |
parents | 2265d7ebfdeb c45d65392c1a |
children | a7c4a70ae495 |
comparison
equal
deleted
inserted
replaced
1087:1e486f368ec3 | 1121:bb3a03feb31f |
---|---|
97 if (fastopen) { | 97 if (fastopen) { |
98 memset(&message, 0x0, sizeof(message)); | 98 memset(&message, 0x0, sizeof(message)); |
99 message.msg_name = r->ai_addr; | 99 message.msg_name = r->ai_addr; |
100 message.msg_namelen = r->ai_addrlen; | 100 message.msg_namelen = r->ai_addrlen; |
101 /* 6 is arbitrary, enough to hold initial packets */ | 101 /* 6 is arbitrary, enough to hold initial packets */ |
102 int iovlen = 6; /* Linux msg_iovlen is a size_t */ | 102 unsigned int iovlen = 6; /* Linux msg_iovlen is a size_t */ |
103 struct iovec iov[6]; | 103 struct iovec iov[6]; |
104 packet_queue_to_iovec(c->writequeue, iov, &iovlen); | 104 packet_queue_to_iovec(c->writequeue, iov, &iovlen); |
105 message.msg_iov = iov; | 105 message.msg_iov = iov; |
106 message.msg_iovlen = iovlen; | 106 message.msg_iovlen = iovlen; |
107 res = sendmsg(c->sock, &message, MSG_FASTOPEN); | 107 res = sendmsg(c->sock, &message, MSG_FASTOPEN); |