comparison netio.c @ 1094:c45d65392c1a

Fix pointer differ in signess warnings [-Werror=pointer-sign]
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 15:59:06 +0200
parents b3b772646974
children bb3a03feb31f
comparison
equal deleted inserted replaced
1093:aae71c5f7d5b 1094:c45d65392c1a
98 message.msg_name = r->ai_addr; 98 message.msg_name = r->ai_addr;
99 message.msg_namelen = r->ai_addrlen; 99 message.msg_namelen = r->ai_addrlen;
100 100
101 if (c->writequeue) { 101 if (c->writequeue) {
102 /* 6 is arbitrary, enough to hold initial packets */ 102 /* 6 is arbitrary, enough to hold initial packets */
103 int iovlen = 6; /* Linux msg_iovlen is a size_t */ 103 unsigned int iovlen = 6; /* Linux msg_iovlen is a size_t */
104 struct iovec iov[6]; 104 struct iovec iov[6];
105 packet_queue_to_iovec(c->writequeue, iov, &iovlen); 105 packet_queue_to_iovec(c->writequeue, iov, &iovlen);
106 message.msg_iov = iov; 106 message.msg_iov = iov;
107 message.msg_iovlen = iovlen; 107 message.msg_iovlen = iovlen;
108 res = sendmsg(c->sock, &message, MSG_FASTOPEN); 108 res = sendmsg(c->sock, &message, MSG_FASTOPEN);